home *** CD-ROM | disk | FTP | other *** search
/ Macwelt 2 / Macwelt DVD 2.cdr / System / Entwickler-Tools / macos9 / Future Basic 3 6.0.3 / Subs DEFUSR.Incl < prev    next >
MacBinary  |  2002-03-14  |  12.8 KB  |  [TEXT/FB^e]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Mar 14 02:45:47 2002, modified Thu Mar 14 02:45:47 2002, creator 'FB^e', type ASCII, 12311 bytes "Subs DEFUSR.Incl" , at 0x3097 495 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% dearkID deark: macbinary default
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[FB^e]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 10 53 75 62 73 20 44 | 45 46 55 53 52 2e 49 6e |..Subs D|EFUSR.In|
|00000010| 63 6c 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |cl......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 46 42 5e | 65 01 00 00 a2 00 01 00 |.TEXTFB^|e.......|
|00000050| 00 00 00 00 00 30 17 00 | 00 01 ef b8 b6 05 ab b8 |.....0..|........|
|00000060| b6 05 ab 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 06 6d 00 00 |........|.....m..|
|00000080| 2f 2f 20 42 6c 6f 63 6b | 46 69 6c 6c 20 6d 6f 64 |// Block|Fill mod|
|00000090| 69 66 69 65 64 20 74 6f | 20 75 73 65 20 42 6c 6f |ified to| use Blo|
|000000a0| 63 6b 5a 65 72 6f 20 66 | 6f 72 20 73 70 65 65 64 |ckZero f|or speed|
|000000b0| 2c 20 69 66 20 70 6f 73 | 73 69 62 6c 65 20 20 20 |, if pos|sible |
|000000c0| 52 50 20 20 32 31 20 53 | 65 70 74 20 32 30 30 31 |RP 21 S|ept 2001|
|000000d0| 0d 0d 2f 2f 20 4d 6f 64 | 73 20 30 35 2e 30 39 2e |..// Mod|s 05.09.|
|000000e0| 30 30 20 41 64 64 65 64 | 20 44 45 46 20 46 4c 41 |00 Added| DEF FLA|
|000000f0| 53 48 20 26 20 44 45 46 | 20 4f 52 53 49 43 4e 0d |SH & DEF| ORSICN.|
|00000100| 6c 6f 63 61 6c 20 66 6e | 20 75 73 65 4c 69 74 65 |local fn| useLite|
|00000110| 47 72 61 66 57 6e 64 28 | 78 26 2c 79 26 29 0d 27 |GrafWnd(|x&,y&).'|
|00000120| 7e 27 0d 43 4f 4d 50 49 | 4c 45 20 4c 4f 4e 47 20 |~'.COMPI|LE LONG |
|00000130| 49 46 20 44 45 46 20 5f | 44 65 66 61 75 6c 74 52 |IF DEF _|DefaultR|
|00000140| 75 6e 74 69 6d 65 0d 46 | 4e 20 46 42 53 65 74 47 |untime.F|N FBSetG|
|00000150| 72 61 66 57 6e 64 0d 46 | 4e 20 46 42 53 61 76 65 |rafWnd.F|N FBSave|
|00000160| 4d 61 78 50 69 78 65 6c | 28 78 26 2c 79 26 29 0d |MaxPixel|(x&,y&).|
|00000170| 43 4f 4d 50 49 4c 45 20 | 45 4e 44 20 49 46 0d 65 |COMPILE |END IF.e|
|00000180| 6e 64 20 66 6e 0d 0d 72 | 75 6e 74 69 6d 65 20 64 |nd fn..r|untime d|
|00000190| 65 66 20 46 4c 41 53 48 | 0d 27 7e 27 0d 64 69 6d |ef FLASH|.'~'.dim|
|000001a0| 20 61 73 20 6c 6f 6e 67 | 20 40 20 70 6f 72 74 26 | as long| @ port&|
|000001b0| 0d 63 61 6c 6c 20 67 65 | 74 70 6f 72 74 28 70 6f |.call ge|tport(po|
|000001c0| 72 74 26 29 0d 63 61 6c | 6c 20 69 6e 76 65 72 74 |rt&).cal|l invert|
|000001d0| 72 65 63 74 28 70 6f 72 | 74 26 2e 70 6f 72 74 52 |rect(por|t&.portR|
|000001e0| 65 63 74 25 29 0d 65 6e | 64 20 66 6e 0d 0d 72 75 |ect%).en|d fn..ru|
|000001f0| 6e 74 69 6d 65 20 64 65 | 66 20 4f 52 53 49 43 4e |ntime de|f ORSICN|
|00000200| 28 78 26 2c 79 26 2c 72 | 49 44 26 29 0d 27 7e 27 |(x&,y&,r|ID&).'~'|
|00000210| 0d 44 49 4d 20 72 48 6e | 64 6c 26 0d 64 69 6d 20 |.DIM rHn|dl&.dim |
|00000220| 40 62 6d 61 70 50 74 72 | 26 2c 72 6f 77 62 79 74 |@bmapPtr|&,rowbyt|
|00000230| 65 73 25 2c 73 72 63 20 | 61 73 20 72 65 63 74 0d |es%,src |as rect.|
|00000240| 64 69 6d 20 64 65 73 74 | 20 61 73 20 72 65 63 74 |dim dest| as rect|
|00000250| 0d 64 69 6d 20 68 53 74 | 61 74 65 0d 64 69 6d 20 |.dim hSt|ate.dim |
|00000260| 40 70 6f 72 74 26 0d 63 | 61 6c 6c 20 73 65 74 72 |@port&.c|all setr|
|00000270| 65 63 74 28 73 72 63 2c | 30 2c 30 2c 31 36 2c 31 |ect(src,|0,0,16,1|
|00000280| 36 29 0d 64 65 73 74 20 | 3d 20 73 72 63 0d 63 61 |6).dest |= src.ca|
|00000290| 6c 6c 20 6f 66 66 73 65 | 74 72 65 63 74 28 64 65 |ll offse|trect(de|
|000002a0| 73 74 2c 78 26 2c 79 26 | 29 0d 72 48 6e 64 6c 26 |st,x&,y&|).rHndl&|
|000002b0| 20 3d 20 66 6e 20 67 65 | 74 72 65 73 6f 75 72 63 | = fn ge|tresourc|
|000002c0| 65 28 5f 22 53 49 43 4e | 22 2c 72 49 44 26 29 0d |e(_"SICN|",rID&).|
|000002d0| 6c 6f 6e 67 20 69 66 20 | 72 48 6e 64 6c 26 0d 68 |long if |rHndl&.h|
|000002e0| 53 74 61 74 65 20 3d 20 | 66 6e 20 68 67 65 74 73 |State = |fn hgets|
|000002f0| 74 61 74 65 28 72 48 6e | 64 6c 26 29 0d 63 61 6c |tate(rHn|dl&).cal|
|00000300| 6c 20 68 6c 6f 63 6b 28 | 72 48 6e 64 6c 26 29 0d |l hlock(|rHndl&).|
|00000310| 63 61 6c 6c 20 67 65 74 | 70 6f 72 74 28 70 6f 72 |call get|port(por|
|00000320| 74 26 29 0d 72 6f 77 62 | 79 74 65 73 25 20 3d 20 |t&).rowb|ytes% = |
|00000330| 32 0d 62 6d 61 70 50 74 | 72 26 20 20 3d 20 5b 72 |2.bmapPt|r& = [r|
|00000340| 48 6e 64 6c 26 5d 0d 63 | 61 6c 6c 20 63 6f 70 79 |Hndl&].c|all copy|
|00000350| 62 69 74 73 28 62 6d 61 | 70 50 74 72 26 2c 23 70 |bits(bma|pPtr&,#p|
|00000360| 6f 72 74 26 2b 32 2c 73 | 72 63 2c 64 65 73 74 2c |ort&+2,s|rc,dest,|
|00000370| 5f 73 72 63 4f 52 2c 30 | 29 0d 63 61 6c 6c 20 68 |_srcOR,0|).call h|
|00000380| 73 65 74 73 74 61 74 65 | 28 72 48 6e 64 6c 26 2c |setstate|(rHndl&,|
|00000390| 68 53 74 61 74 65 29 0d | 78 65 6c 73 65 0d 63 61 |hState).|xelse.ca|
|000003a0| 6c 6c 20 66 72 61 6d 65 | 72 65 63 74 28 64 65 73 |ll frame|rect(des|
|000003b0| 74 29 0d 65 6e 64 20 69 | 66 0d 45 4e 44 20 46 4e |t).end i|f.END FN|
|000003c0| 0d 0d 6c 6f 63 61 6c 0d | 64 69 6d 20 73 74 61 74 |..local.|dim stat|
|000003d0| 65 26 0d 52 55 4e 54 49 | 4d 45 20 44 45 46 20 44 |e&.RUNTI|ME DEF D|
|000003e0| 49 53 50 4f 53 45 48 28 | 40 76 50 74 72 26 29 0d |ISPOSEH(|@vPtr&).|
|000003f0| 27 7e 27 0d 4c 4f 4e 47 | 20 49 46 20 76 50 74 72 |'~'.LONG| IF vPtr|
|00000400| 26 2e 6e 69 6c 26 0d 73 | 74 61 74 65 26 20 3d 20 |&.nil&.s|tate& = |
|00000410| 66 6e 20 68 67 65 74 73 | 74 61 74 65 28 76 50 74 |fn hgets|tate(vPt|
|00000420| 72 26 2e 6e 69 6c 26 29 | 0d 6c 6f 6e 67 20 69 66 |r&.nil&)|.long if|
|00000430| 20 73 74 61 74 65 26 20 | 61 6e 64 20 30 78 30 30 | state& |and 0x00|
|00000440| 32 30 0d 73 74 6f 70 20 | 22 59 6f 75 20 63 61 6e |20.stop |"You can|
|00000450| 6e 6f 74 20 75 73 65 20 | 44 45 46 20 44 49 53 50 |not use |DEF DISP|
|00000460| 4f 53 45 48 20 6f 6e 20 | 61 20 72 65 73 6f 75 72 |OSEH on |a resour|
|00000470| 63 65 20 68 61 6e 64 6c | 65 22 0d 78 65 6c 73 65 |ce handl|e".xelse|
|00000480| 0d 63 61 6c 6c 20 44 69 | 73 70 6f 73 65 48 61 6e |.call Di|sposeHan|
|00000490| 64 6c 65 28 76 50 74 72 | 26 2e 6e 69 6c 26 29 0d |dle(vPtr|&.nil&).|
|000004a0| 76 50 74 72 26 2e 6e 69 | 6c 26 20 3d 20 30 0d 65 |vPtr&.ni|l& = 0.e|
|000004b0| 6e 64 20 69 66 0d 45 4e | 44 20 49 46 0d 45 4e 44 |nd if.EN|D IF.END|
|000004c0| 20 46 4e 0d 0d 23 69 66 | 20 63 70 75 50 50 43 27 | FN..#if| cpuPPC'|
|000004d0| 43 68 61 6e 67 65 64 3a | 20 52 50 20 20 32 30 20 |Changed:| RP 20 |
|000004e0| 53 65 70 74 20 32 30 30 | 31 0d 72 75 6e 74 69 6d |Sept 200|1.runtim|
|000004f0| 65 20 64 65 66 20 42 6c | 6f 63 6b 46 69 6c 6c 28 |e def Bl|ockFill(|
|00000500| 20 73 74 61 72 74 20 61 | 73 20 70 74 72 2c 20 62 | start a|s ptr, b|
|00000510| 79 74 65 73 20 61 73 20 | 6c 6f 6e 67 2c 20 76 61 |ytes as |long, va|
|00000520| 6c 75 65 20 61 73 20 6c | 6f 6e 67 29 0d 27 7e 27 |lue as l|ong).'~'|
|00000530| 31 0d 62 65 67 69 6e 61 | 73 73 65 6d 0d 20 6d 72 |1.begina|ssem. mr|
|00000540| 2e 20 20 20 20 20 5e 76 | 61 6c 75 65 2c 5e 76 61 |. ^v|alue,^va|
|00000550| 6c 75 65 0d 20 6c 77 7a | 20 20 20 20 20 72 30 2c |lue. lwz| r0,|
|00000560| 5e 67 46 42 46 61 73 74 | 42 6c 6b 43 6d 64 73 41 |^gFBFast|BlkCmdsA|
|00000570| 76 61 69 6c 20 3b 20 63 | 61 6e 20 77 65 20 75 73 |vail ; c|an we us|
|00000580| 65 20 42 6c 6f 63 6b 5a | 65 72 6f 0d 20 62 6e 65 |e BlockZ|ero. bne|
|00000590| 20 20 20 20 20 42 6c 6f | 63 6b 46 69 6c 6c 41 53 | Blo|ckFillAS|
|000005a0| 4d 20 3b 20 69 66 20 76 | 61 6c 75 65 20 6e 6f 74 |M ; if v|alue not|
|000005b0| 20 7a 65 72 6f 2c 20 75 | 73 65 20 61 73 6d 0d 20 | zero, u|se asm. |
|000005c0| 6d 72 2e 20 20 20 20 20 | 72 30 2c 72 30 0d 20 63 |mr. |r0,r0. c|
|000005d0| 6d 70 6c 69 20 20 20 63 | 72 31 2c 30 2c 72 34 2c |mpli c|r1,0,r4,|
|000005e0| 31 36 0d 20 62 65 71 20 | 20 20 20 20 42 6c 6f 63 |16. beq | Bloc|
|000005f0| 6b 46 69 6c 6c 41 53 4d | 20 3b 20 6e 6f 20 42 6c |kFillASM| ; no Bl|
|00000600| 6f 63 6b 5a 65 72 6f 3b | 20 75 73 65 20 61 73 6d |ockZero;| use asm|
|00000610| 0d 20 62 63 20 20 20 20 | 20 20 31 32 2c 34 2c 42 |. bc | 12,4,B|
|00000620| 6c 6f 63 6b 46 69 6c 6c | 41 53 4d 3b 20 62 6c 74 |lockFill|ASM; blt|
|00000630| 20 63 72 31 20 3b 20 75 | 73 65 20 41 53 4d 20 66 | cr1 ; u|se ASM f|
|00000640| 6f 72 20 73 6d 61 6c 6c | 20 66 69 6c 6c 0d 20 73 |or small| fill. s|
|00000650| 74 77 75 20 20 20 20 73 | 70 2c 2d 36 34 28 73 70 |twu s|p,-64(sp|
|00000660| 29 0d 20 5f 42 6c 6f 63 | 6b 5a 65 72 6f 20 2f 2f |). _Bloc|kZero //|
|00000670| 20 66 61 73 74 0d 20 61 | 64 64 69 20 20 20 20 73 | fast. a|ddi s|
|00000680| 70 2c 73 70 2c 36 34 0d | 20 62 20 20 20 20 20 20 |p,sp,64.| b |
|00000690| 20 42 6c 6f 63 6b 46 69 | 6c 6c 0d 42 6c 6f 63 6b | BlockFi|ll.Block|
|000006a0| 46 69 6c 6c 41 53 4d 0d | 20 6d 72 2e 20 20 20 20 |FillASM.| mr. |
|000006b0| 72 34 2c 5e 62 79 74 65 | 73 20 2f 2f 20 74 65 73 |r4,^byte|s // tes|
|000006c0| 74 20 66 6f 72 20 30 20 | 62 79 74 65 73 0d 20 6d |t for 0 |bytes. m|
|000006d0| 74 73 70 72 20 20 63 74 | 72 2c 72 34 0d 20 61 64 |tspr ct|r,r4. ad|
|000006e0| 64 69 20 20 20 72 33 2c | 5e 73 74 61 72 74 2c 2d |di r3,|^start,-|
|000006f0| 31 0d 20 62 6c 74 20 20 | 20 20 42 6c 6f 63 6b 46 |1. blt | BlockF|
|00000700| 69 6c 6c 20 3b 20 6e 6f | 6e 65 20 74 6f 20 66 69 |ill ; no|ne to fi|
|00000710| 6c 6c 0d 42 6c 6b 46 69 | 6c 6c 4c 6f 6f 70 20 73 |ll.BlkFi|llLoop s|
|00000720| 74 62 75 20 5e 76 61 6c | 75 65 2c 31 28 72 33 29 |tbu ^val|ue,1(r3)|
|00000730| 0d 20 62 63 20 20 20 20 | 20 31 36 2c 30 2c 42 6c |. bc | 16,0,Bl|
|00000740| 6b 46 69 6c 6c 4c 6f 6f | 70 20 3b 20 62 64 6e 7a |kFillLoo|p ; bdnz|
|00000750| 0d 42 6c 6f 63 6b 46 69 | 6c 6c 0d 65 6e 64 61 73 |.BlockFi|ll.endas|
|00000760| 73 65 6d 0d 65 6e 64 20 | 66 6e 0d 0d 72 75 6e 74 |sem.end |fn..runt|
|00000770| 69 6d 65 20 64 65 66 20 | 4c 6f 6e 67 42 6c 6f 63 |ime def |LongBloc|
|00000780| 6b 46 69 6c 6c 28 20 73 | 74 61 72 74 20 61 73 20 |kFill( s|tart as |
|00000790| 70 74 72 2c 20 62 79 74 | 65 73 20 61 73 20 6c 6f |ptr, byt|es as lo|
|000007a0| 6e 67 2c 20 76 61 6c 75 | 65 20 61 73 20 6c 6f 6e |ng, valu|e as lon|
|000007b0| 67 29 0d 27 7e 27 31 0d | 64 65 66 20 42 6c 6f 63 |g).'~'1.|def Bloc|
|000007c0| 6b 46 69 6c 6c 28 20 73 | 74 61 72 74 2c 20 62 79 |kFill( s|tart, by|
|000007d0| 74 65 73 2c 20 76 61 6c | 75 65 20 29 0d 65 6e 64 |tes, val|ue ).end|
|000007e0| 20 66 6e 0d 0d 23 65 6c | 73 65 0d 27 7e 27 0d 4c | fn..#el|se.'~'.L|
|000007f0| 4f 43 41 4c 0d 44 49 4d | 20 69 26 2c 45 6e 64 41 |OCAL.DIM| i&,EndA|
|00000800| 64 64 72 26 0d 52 55 4e | 54 49 4d 45 20 44 45 46 |ddr&.RUN|TIME DEF|
|00000810| 20 42 4c 4f 43 4b 46 49 | 4c 4c 28 53 74 61 72 74 | BLOCKFI|LL(Start|
|00000820| 26 2c 42 79 74 65 73 26 | 2c 56 61 6c 75 65 26 29 |&,Bytes&|,Value&)|
|00000830| 0d 27 7e 27 0d 45 6e 64 | 41 64 64 72 26 20 3d 20 |.'~'.End|Addr& = |
|00000840| 53 74 61 72 74 26 2b 42 | 79 74 65 73 26 2d 31 0d |Start&+B|ytes&-1.|
|00000850| 46 4f 52 20 69 26 20 3d | 20 53 74 61 72 74 26 20 |FOR i& =| Start& |
|00000860| 54 4f 20 45 6e 64 41 64 | 64 72 26 0d 70 6f 6b 65 |TO EndAd|dr&.poke|
|00000870| 20 69 26 2c 56 61 6c 75 | 65 26 0d 4e 45 58 54 0d | i&,Valu|e&.NEXT.|
|00000880| 45 4e 44 20 46 4e 0d 27 | 7e 27 0d 4c 4f 43 41 4c |END FN.'|~'.LOCAL|
|00000890| 0d 44 49 4d 20 69 26 2c | 45 6e 64 41 64 64 72 26 |.DIM i&,|EndAddr&|
|000008a0| 0d 52 55 4e 54 49 4d 45 | 20 44 45 46 20 4c 4f 4e |.RUNTIME| DEF LON|
|000008b0| 47 42 4c 4f 43 4b 46 49 | 4c 4c 28 53 74 61 72 74 |GBLOCKFI|LL(Start|
|000008c0| 26 2c 42 79 74 65 73 26 | 2c 56 61 6c 75 65 26 29 |&,Bytes&|,Value&)|
|000008d0| 0d 27 7e 27 0d 45 6e 64 | 41 64 64 72 26 20 3d 20 |.'~'.End|Addr& = |
|000008e0| 53 74 61 72 74 26 2b 42 | 79 74 65 73 26 2d 31 0d |Start&+B|ytes&-1.|
|000008f0| 46 4f 52 20 69 26 20 3d | 20 53 74 61 72 74 26 20 |FOR i& =| Start& |
|00000900| 54 4f 20 45 6e 64 41 64 | 64 72 26 0d 70 6f 6b 65 |TO EndAd|dr&.poke|
|00000910| 20 69 26 2c 56 61 6c 75 | 65 26 0d 4e 45 58 54 0d | i&,Valu|e&.NEXT.|
|00000920| 45 4e 44 20 46 4e 0d 27 | 7e 27 0d 23 65 6e 64 69 |END FN.'|~'.#endi|
|00000930| 66 0d 0d 6c 6f 63 61 6c | 0d 44 49 4d 20 69 0d 52 |f..local|.DIM i.R|
|00000940| 55 4e 54 49 4d 45 20 44 | 45 46 20 53 48 4f 57 50 |UNTIME D|EF SHOWP|
|00000950| 4f 50 28 40 72 65 63 74 | 50 74 72 26 29 0d 27 7e |OP(@rect|Ptr&).'~|
|00000960| 27 0d 66 6e 20 75 73 65 | 4c 69 74 65 47 72 61 66 |'.fn use|LiteGraf|
|00000970| 57 6e 64 28 72 65 63 74 | 50 74 72 26 2e 72 69 67 |Wnd(rect|Ptr&.rig|
|00000980| 68 74 25 2c 72 65 63 74 | 50 74 72 26 2e 62 6f 74 |ht%,rect|Ptr&.bot|
|00000990| 74 6f 6d 25 29 0d 66 6f | 72 20 69 20 3d 20 30 20 |tom%).fo|r i = 0 |
|000009a0| 74 6f 20 35 0d 6d 6f 76 | 65 74 6f 28 72 65 63 74 |to 5.mov|eto(rect|
|000009b0| 50 74 72 26 2e 52 69 67 | 68 74 25 2d 31 31 2d 69 |Ptr&.Rig|ht%-11-i|
|000009c0| 2c 72 65 63 74 50 74 72 | 26 2e 54 6f 70 25 2d 69 |,rectPtr|&.Top%-i|
|000009d0| 2b 31 31 29 0d 4c 69 6e | 65 74 6f 28 72 65 63 74 |+11).Lin|eto(rect|
|000009e0| 50 74 72 26 2e 52 69 67 | 68 74 25 2d 31 31 2b 69 |Ptr&.Rig|ht%-11+i|
|000009f0| 2c 72 65 63 74 50 74 72 | 26 2e 54 6f 70 25 2d 69 |,rectPtr|&.Top%-i|
|00000a00| 2b 31 31 29 0d 6e 65 78 | 74 20 0d 45 4e 44 20 46 |+11).nex|t .END F|
|00000a10| 4e 0d 0d 0d 52 55 4e 54 | 49 4d 45 20 44 45 46 20 |N...RUNT|IME DEF |
|00000a20| 43 4f 50 59 52 45 43 54 | 28 40 72 65 63 74 31 26 |COPYRECT|(@rect1&|
|00000a30| 2c 40 72 65 63 74 32 26 | 29 0d 27 7e 27 0d 62 6c |,@rect2&|).'~'.bl|
|00000a40| 6f 63 6b 6d 6f 76 65 20 | 72 65 63 74 31 26 2c 72 |ockmove |rect1&,r|
|00000a50| 65 63 74 32 26 2c 38 0d | 45 4e 44 20 46 4e 0d 0d |ect2&,8.|END FN..|
|00000a60| 52 55 4e 54 49 4d 45 20 | 44 45 46 20 43 59 43 4c |RUNTIME |DEF CYCL|
|00000a70| 45 28 53 74 61 72 74 26 | 2c 45 6e 64 26 2c 40 43 |E(Start&|,End&,@C|
|00000a80| 75 72 73 6f 72 56 61 72 | 26 29 0d 27 7e 27 0d 43 |ursorVar|&).'~'.C|
|00000a90| 75 72 73 6f 72 56 61 72 | 26 2e 4e 69 6c 25 20 3d |ursorVar|&.Nil% =|
|00000aa0| 20 43 75 72 73 6f 72 56 | 61 72 26 2e 4e 69 6c 25 | CursorV|ar&.Nil%|
|00000ab0| 20 2b 20 31 0d 6c 6f 6e | 67 20 69 66 20 43 75 72 | + 1.lon|g if Cur|
|00000ac0| 73 6f 72 56 61 72 26 2e | 4e 69 6c 25 20 3e 20 45 |sorVar&.|Nil% > E|
|00000ad0| 6e 64 26 20 6f 72 20 43 | 75 72 73 6f 72 56 61 72 |nd& or C|ursorVar|
|00000ae0| 26 2e 4e 69 6c 25 20 3c | 20 53 74 61 72 74 26 0d |&.Nil% <| Start&.|
|00000af0| 43 75 72 73 6f 72 56 61 | 72 26 2e 4e 69 6c 25 20 |CursorVa|r&.Nil% |
|00000b00| 3d 20 53 74 61 72 74 26 | 0d 45 4e 44 20 49 46 0d |= Start&|.END IF.|
|00000b10| 45 4e 44 20 46 4e 0d 0d | 6c 6f 63 61 6c 20 6d 6f |END FN..|local mo|
|00000b20| 64 65 0d 64 69 6d 20 63 | 6f 75 6e 74 25 2c 68 53 |de.dim c|ount%,hS|
|00000b30| 69 7a 65 26 2c 6f 66 66 | 73 65 74 26 2c 6c 67 74 |ize&,off|set&,lgt|
|00000b40| 68 25 0d 64 69 6d 20 6d | 6f 76 65 53 7a 26 2c 65 |h%.dim m|oveSz&,e|
|00000b50| 72 72 0d 72 75 6e 74 69 | 6d 65 20 64 65 66 20 52 |rr.runti|me def R|
|00000b60| 45 4d 4f 56 45 53 54 52 | 28 73 48 6e 64 6c 26 2c |EMOVESTR|(sHndl&,|
|00000b70| 69 74 65 6d 25 29 0d 27 | 7e 27 0d 6c 6f 6e 67 20 |item%).'|~'.long |
|00000b80| 69 66 20 73 48 6e 64 6c | 26 0d 63 6f 75 6e 74 25 |if sHndl|&.count%|
|00000b90| 20 3d 20 73 48 6e 64 6c | 26 2e 2e 6e 69 6c 25 0d | = sHndl|&..nil%.|
|00000ba0| 6c 6f 6e 67 20 69 66 20 | 63 6f 75 6e 74 25 0d 0d |long if |count%..|
|00000bb0| 6c 6f 6e 67 20 69 66 20 | 69 74 65 6d 25 20 3c 3d |long if |item% <=|
|00000bc0| 20 63 6f 75 6e 74 25 0d | 64 65 63 28 69 74 65 6d | count%.|dec(item|
|00000bd0| 25 29 0d 6f 66 66 73 65 | 74 26 20 3d 20 32 0d 0d |%).offse|t& = 2..|
|00000be0| 77 68 69 6c 65 20 69 74 | 65 6d 25 0d 6f 66 66 73 |while it|em%.offs|
|00000bf0| 65 74 26 20 3d 20 6f 66 | 66 73 65 74 26 20 2b 20 |et& = of|fset& + |
|00000c00| 70 65 65 6b 28 5b 73 48 | 6e 64 6c 26 5d 2b 6f 66 |peek([sH|ndl&]+of|
|00000c10| 66 73 65 74 26 29 2b 31 | 0d 64 65 63 28 69 74 65 |fset&)+1|.dec(ite|
|00000c20| 6d 25 29 0d 77 65 6e 64 | 0d 0d 6c 67 74 68 25 20 |m%).wend|..lgth% |
|00000c30| 3d 20 70 65 65 6b 28 5b | 73 48 6e 64 6c 26 5d 2b |= peek([|sHndl&]+|
|00000c40| 6f 66 66 73 65 74 26 29 | 20 2b 20 31 0d 6d 6f 76 |offset&)| + 1.mov|
|00000c50| 65 53 7a 26 20 3d 20 66 | 6e 20 67 65 74 68 61 6e |eSz& = f|n gethan|
|00000c60| 64 6c 65 73 69 7a 65 28 | 73 48 6e 64 6c 26 29 2d |dlesize(|sHndl&)-|
|00000c70| 28 6c 67 74 68 25 2b 6f | 66 66 73 65 74 26 29 0d |(lgth%+o|ffset&).|
|00000c80| 62 6c 6f 63 6b 6d 6f 76 | 65 20 5b 73 48 6e 64 6c |blockmov|e [sHndl|
|00000c90| 26 5d 2b 6f 66 66 73 65 | 74 26 2b 6c 67 74 68 25 |&]+offse|t&+lgth%|
|00000ca0| 2c 5b 73 48 6e 64 6c 26 | 5d 2b 6f 66 66 73 65 74 |,[sHndl&|]+offset|
|00000cb0| 26 2c 6d 6f 76 65 53 7a | 26 0d 0d 64 65 63 28 73 |&,moveSz|&..dec(s|
|00000cc0| 48 6e 64 6c 26 2e 2e 6e | 69 6c 25 29 0d 63 61 6c |Hndl&..n|il%).cal|
|00000cd0| 6c 20 73 65 74 68 61 6e | 64 6c 65 73 69 7a 65 28 |l sethan|dlesize(|
|00000ce0| 73 48 6e 64 6c 26 2c 66 | 6e 20 67 65 74 68 61 6e |sHndl&,f|n gethan|
|00000cf0| 64 6c 65 73 69 7a 65 28 | 73 48 6e 64 6c 26 29 2d |dlesize(|sHndl&)-|
|00000d00| 6c 67 74 68 25 29 0d 0d | 65 6e 64 20 69 66 0d 65 |lgth%)..|end if.e|
|00000d10| 6e 64 20 69 66 0d 65 6e | 64 20 69 66 0d 45 4e 44 |nd if.en|d if.END|
|00000d20| 20 46 4e 0d 0d 72 75 6e | 74 69 6d 65 20 64 65 66 | FN..run|time def|
|00000d30| 20 54 4f 47 47 4c 45 28 | 40 69 6e 74 50 74 72 26 | TOGGLE(|@intPtr&|
|00000d40| 29 0d 27 7e 27 0d 69 6e | 74 50 74 72 26 2e 6e 69 |).'~'.in|tPtr&.ni|
|00000d50| 6c 25 20 3d 20 69 6e 74 | 50 74 72 26 2e 6e 69 6c |l% = int|Ptr&.nil|
|00000d60| 25 20 3d 20 5f 46 61 6c | 73 65 0d 65 6e 64 20 66 |% = _Fal|se.end f|
|00000d70| 6e 0d 0d 0d 6c 6f 63 61 | 6c 0d 64 69 6d 20 6d 79 |n...loca|l.dim my|
|00000d80| 52 65 63 74 20 61 73 20 | 72 65 63 74 0d 72 75 6e |Rect as |rect.run|
|00000d90| 74 69 6d 65 20 64 65 66 | 20 42 4f 52 44 45 52 28 |time def| BORDER(|
|00000da0| 74 77 6f 50 69 78 65 6c | 25 2c 40 72 65 63 74 50 |twoPixel|%,@rectP|
|00000db0| 74 72 26 29 0d 27 7e 27 | 0d 66 6e 20 75 73 65 4c |tr&).'~'|.fn useL|
|00000dc0| 69 74 65 47 72 61 66 57 | 6e 64 28 72 65 63 74 50 |iteGrafW|nd(rectP|
|00000dd0| 74 72 26 2e 72 69 67 68 | 74 25 2c 72 65 63 74 50 |tr&.righ|t%,rectP|
|00000de0| 74 72 26 2e 62 6f 74 74 | 6f 6d 25 29 0d 0d 6d 79 |tr&.bott|om%)..my|
|00000df0| 52 65 63 74 2e 74 6f 70 | 25 3b 38 20 3d 20 40 72 |Rect.top|%;8 = @r|
|00000e00| 65 63 74 50 74 72 26 2e | 6e 69 6c 25 0d 6c 6f 6e |ectPtr&.|nil%.lon|
|00000e10| 67 20 69 66 20 74 77 6f | 50 69 78 65 6c 25 0d 70 |g if two|Pixel%.p|
|00000e20| 65 6e 73 69 7a 65 28 32 | 2c 32 29 0d 78 65 6c 73 |ensize(2|,2).xels|
|00000e30| 65 0d 70 65 6e 73 69 7a | 65 28 31 2c 31 29 0d 65 |e.pensiz|e(1,1).e|
|00000e40| 6e 64 20 69 66 0d 0d 66 | 72 61 6d 65 72 65 63 74 |nd if..f|ramerect|
|00000e50| 28 6d 79 52 65 63 74 2e | 74 6f 70 25 29 0d 69 6e |(myRect.|top%).in|
|00000e60| 73 65 74 72 65 63 74 28 | 6d 79 52 65 63 74 2e 74 |setrect(|myRect.t|
|00000e70| 6f 70 25 2c 33 2c 33 29 | 0d 70 65 6e 73 69 7a 65 |op%,3,3)|.pensize|
|00000e80| 28 31 2c 31 29 0d 66 72 | 61 6d 65 72 65 63 74 28 |(1,1).fr|amerect(|
|00000e90| 6d 79 52 65 63 74 2e 74 | 6f 70 25 29 0d 65 6e 64 |myRect.t|op%).end|
|00000ea0| 20 66 6e 0d 0d 0d 52 55 | 4e 54 49 4d 45 20 44 45 | fn...RU|NTIME DE|
|00000eb0| 46 20 53 48 41 44 4f 57 | 42 4f 58 28 40 72 65 63 |F SHADOW|BOX(@rec|
|00000ec0| 74 50 74 72 26 29 0d 27 | 7e 27 0d 66 6e 20 75 73 |tPtr&).'|~'.fn us|
|00000ed0| 65 4c 69 74 65 47 72 61 | 66 57 6e 64 28 72 65 63 |eLiteGra|fWnd(rec|
|00000ee0| 74 50 74 72 26 2e 72 69 | 67 68 74 25 2c 72 65 63 |tPtr&.ri|ght%,rec|
|00000ef0| 74 50 74 72 26 2e 62 6f | 74 74 6f 6d 25 29 0d 0d |tPtr&.bo|ttom%)..|
|00000f00| 4f 46 46 53 45 54 52 45 | 43 54 28 23 72 65 63 74 |OFFSETRE|CT(#rect|
|00000f10| 50 74 72 26 2c 2d 31 2c | 2d 31 29 0d 45 52 41 53 |Ptr&,-1,|-1).ERAS|
|00000f20| 45 52 45 43 54 28 23 72 | 65 63 74 50 74 72 26 29 |ERECT(#r|ectPtr&)|
|00000f30| 0d 46 52 41 4d 45 52 45 | 43 54 28 23 72 65 63 74 |.FRAMERE|CT(#rect|
|00000f40| 50 74 72 26 29 0d 6d 6f | 76 65 74 6f 28 72 65 63 |Ptr&).mo|veto(rec|
|00000f50| 74 50 74 72 26 2e 4c 65 | 66 74 25 2b 34 2c 72 65 |tPtr&.Le|ft%+4,re|
|00000f60| 63 74 50 74 72 26 2e 42 | 6f 74 74 6f 6d 25 29 0d |ctPtr&.B|ottom%).|
|00000f70| 4c 69 6e 65 74 6f 28 72 | 65 63 74 50 74 72 26 2e |Lineto(r|ectPtr&.|
|00000f80| 52 69 67 68 74 25 2c 72 | 65 63 74 50 74 72 26 2e |Right%,r|ectPtr&.|
|00000f90| 42 6f 74 74 6f 6d 25 29 | 0d 4c 69 6e 65 74 6f 28 |Bottom%)|.Lineto(|
|00000fa0| 72 65 63 74 50 74 72 26 | 2e 52 69 67 68 74 25 2c |rectPtr&|.Right%,|
|00000fb0| 72 65 63 74 50 74 72 26 | 2e 54 6f 70 25 2b 33 29 |rectPtr&|.Top%+3)|
|00000fc0| 0d 4f 46 46 53 45 54 52 | 45 43 54 28 23 72 65 63 |.OFFSETR|ECT(#rec|
|00000fd0| 74 50 74 72 26 2c 31 2c | 31 29 0d 45 4e 44 20 46 |tPtr&,1,|1).END F|
|00000fe0| 4e 0d 0d 0d 4c 4f 43 41 | 4c 0d 44 49 4d 20 69 26 |N...LOCA|L.DIM i&|
|00000ff0| 2c 6d 48 6e 64 6c 26 2c | 6d 43 6f 75 6e 74 26 0d |,mHndl&,|mCount&.|
|00001000| 52 55 4e 54 49 4d 45 20 | 44 45 46 20 43 48 45 43 |RUNTIME |DEF CHEC|
|00001010| 4b 4f 4e 45 49 54 45 4d | 28 69 64 26 2c 69 74 65 |KONEITEM|(id&,ite|
|00001020| 6d 26 29 0d 27 7e 27 0d | 6d 48 6e 64 6c 26 20 3d |m&).'~'.|mHndl& =|
|00001030| 20 46 4e 20 47 65 74 4d | 48 61 6e 64 6c 65 28 69 | FN GetM|Handle(i|
|00001040| 64 26 29 0d 6c 6f 6e 67 | 20 69 66 20 6d 48 6e 64 |d&).long| if mHnd|
|00001050| 6c 26 0d 6d 43 6f 75 6e | 74 26 20 3d 20 46 4e 20 |l&.mCoun|t& = FN |
|00001060| 43 6f 75 6e 74 4d 49 74 | 65 6d 73 28 6d 48 6e 64 |CountMIt|ems(mHnd|
|00001070| 6c 26 29 0d 66 6f 72 20 | 69 26 20 3d 20 31 20 74 |l&).for |i& = 1 t|
|00001080| 6f 20 6d 43 6f 75 6e 74 | 26 0d 6c 6f 6e 67 20 69 |o mCount|&.long i|
|00001090| 66 20 69 26 20 3d 20 69 | 74 65 6d 26 0d 43 68 65 |f i& = i|tem&.Che|
|000010a0| 63 6b 49 74 65 6d 28 6d | 48 6e 64 6c 26 2c 69 26 |ckItem(m|Hndl&,i&|
|000010b0| 2c 5f 7a 54 72 75 65 29 | 0d 78 65 6c 73 65 0d 43 |,_zTrue)|.xelse.C|
|000010c0| 68 65 63 6b 49 74 65 6d | 28 6d 48 6e 64 6c 26 2c |heckItem|(mHndl&,|
|000010d0| 69 26 2c 5f 46 61 6c 73 | 65 29 0d 65 6e 64 20 69 |i&,_Fals|e).end i|
|000010e0| 66 0d 6e 65 78 74 0d 65 | 6e 64 20 69 66 0d 45 4e |f.next.e|nd if.EN|
|000010f0| 44 20 46 4e 0d 0d 6c 6f | 63 61 6c 0d 64 69 6d 20 |D FN..lo|cal.dim |
|00001100| 4f 53 45 72 72 25 2c 68 | 53 74 61 74 65 25 2c 6f |OSErr%,h|State%,o|
|00001110| 6c 64 53 69 7a 65 26 0d | 52 55 4e 54 49 4d 45 20 |ldSize&.|RUNTIME |
|00001120| 44 45 46 20 41 50 4e 44 | 53 54 52 28 74 24 2c 68 |DEF APND|STR(t$,h|
|00001130| 26 29 0d 27 7e 27 0d 6c | 6f 6e 67 20 69 66 20 68 |&).'~'.l|ong if h|
|00001140| 26 0d 68 53 74 61 74 65 | 25 20 20 3d 20 66 6e 20 |&.hState|% = fn |
|00001150| 48 47 65 74 53 74 61 74 | 65 28 68 26 29 0d 63 61 |HGetStat|e(h&).ca|
|00001160| 6c 6c 20 48 4e 6f 50 75 | 72 67 65 28 68 26 29 0d |ll HNoPu|rge(h&).|
|00001170| 6f 6c 64 53 69 7a 65 26 | 20 3d 20 66 6e 20 47 65 |oldSize&| = fn Ge|
|00001180| 74 48 61 6e 64 6c 65 53 | 69 7a 65 28 68 26 29 0d |tHandleS|ize(h&).|
|00001190| 63 61 6c 6c 20 53 65 74 | 48 61 6e 64 6c 65 53 69 |call Set|HandleSi|
|000011a0| 7a 65 28 68 26 2c 6f 6c | 64 53 69 7a 65 26 20 2b |ze(h&,ol|dSize& +|
|000011b0| 20 74 24 5b 30 5d 20 2b | 20 31 29 0d 6c 6f 6e 67 | t$[0] +| 1).long|
|000011c0| 20 69 66 20 66 6e 20 6d | 65 6d 65 72 72 6f 72 20 | if fn m|emerror |
|000011d0| 3d 20 5f 6e 6f 45 72 72 | 0d 62 6c 6f 63 6b 6d 6f |= _noErr|.blockmo|
|000011e0| 76 65 20 40 74 24 2c 5b | 68 26 5d 20 2b 20 6f 6c |ve @t$,[|h&] + ol|
|000011f0| 64 53 69 7a 65 26 2c 74 | 24 5b 30 5d 2b 31 0d 69 |dSize&,t|$[0]+1.i|
|00001200| 6e 63 28 68 26 2e 2e 6e | 69 6c 25 29 0d 78 65 6c |nc(h&..n|il%).xel|
|00001210| 73 65 0d 74 24 20 3d 20 | 22 46 61 69 6c 65 64 20 |se.t$ = |"Failed |
|00001220| 74 6f 20 61 70 70 65 6e | 64 20 d2 22 2b 74 24 2b |to appen|d ."+t$+|
|00001230| 22 d3 20 74 6f 20 53 54 | 52 23 20 68 61 6e 64 6c |". to ST|R# handl|
|00001240| 65 2e 22 0d 73 68 75 74 | 64 6f 77 6e 20 74 24 0d |e.".shut|down t$.|
|00001250| 65 6e 64 20 69 66 0d 63 | 61 6c 6c 20 48 53 65 74 |end if.c|all HSet|
|00001260| 53 74 61 74 65 28 68 26 | 2c 68 53 74 61 74 65 25 |State(h&|,hState%|
|00001270| 29 0d 65 6e 64 20 69 66 | 0d 45 4e 44 20 46 4e 0d |).end if|.END FN.|
|00001280| 0d 6c 6f 63 61 6c 0d 64 | 69 6d 20 4f 53 45 72 72 |.local.d|im OSErr|
|00001290| 25 2c 68 53 74 61 74 65 | 25 2c 6f 6c 64 53 69 7a |%,hState|%,oldSiz|
|000012a0| 65 26 0d 52 55 4e 54 49 | 4d 45 20 44 45 46 20 41 |e&.RUNTI|ME DEF A|
|000012b0| 50 4e 44 4c 4e 47 28 70 | 61 72 61 6d 26 2c 68 26 |PNDLNG(p|aram&,h&|
|000012c0| 29 0d 27 7e 27 0d 6c 6f | 6e 67 20 69 66 20 68 26 |).'~'.lo|ng if h&|
|000012d0| 0d 68 53 74 61 74 65 25 | 20 20 3d 20 66 6e 20 48 |.hState%| = fn H|
|000012e0| 47 65 74 53 74 61 74 65 | 28 68 26 29 0d 63 61 6c |GetState|(h&).cal|
|000012f0| 6c 20 48 4e 6f 50 75 72 | 67 65 28 68 26 29 0d 6f |l HNoPur|ge(h&).o|
|00001300| 6c 64 53 69 7a 65 26 20 | 3d 20 66 6e 20 47 65 74 |ldSize& |= fn Get|
|00001310| 48 61 6e 64 6c 65 53 69 | 7a 65 28 68 26 29 0d 66 |HandleSi|ze(h&).f|
|00001320| 6e 20 53 65 74 48 61 6e | 64 6c 65 53 69 7a 65 28 |n SetHan|dleSize(|
|00001330| 68 26 2c 6f 6c 64 53 69 | 7a 65 26 20 2b 20 34 29 |h&,oldSi|ze& + 4)|
|00001340| 0d 6c 6f 6e 67 20 69 66 | 20 66 6e 20 6d 65 6d 65 |.long if| fn meme|
|00001350| 72 72 6f 72 20 3d 20 5f | 6e 6f 45 72 72 0d 26 20 |rror = _|noErr.& |
|00001360| 5b 68 26 5d 20 2b 20 6f | 6c 64 53 69 7a 65 26 2c |[h&] + o|ldSize&,|
|00001370| 70 61 72 61 6d 26 0d 65 | 6e 64 20 69 66 0d 63 61 |param&.e|nd if.ca|
|00001380| 6c 6c 20 48 53 65 74 53 | 74 61 74 65 28 68 26 2c |ll HSetS|tate(h&,|
|00001390| 68 53 74 61 74 65 25 29 | 0d 65 6e 64 20 69 66 0d |hState%)|.end if.|
|000013a0| 45 4e 44 20 46 4e 0d 0d | 52 55 4e 54 49 4d 45 20 |END FN..|RUNTIME |
|000013b0| 44 45 46 20 43 42 4f 58 | 28 40 52 65 63 74 50 74 |DEF CBOX|(@RectPt|
|000013c0| 72 26 2c 40 53 74 72 50 | 74 72 26 29 0d 27 7e 27 |r&,@StrP|tr&).'~'|
|000013d0| 0d 66 6e 20 75 73 65 4c | 69 74 65 47 72 61 66 57 |.fn useL|iteGrafW|
|000013e0| 6e 64 28 72 65 63 74 50 | 74 72 26 2e 72 69 67 68 |nd(rectP|tr&.righ|
|000013f0| 74 25 2c 72 65 63 74 50 | 74 72 26 2e 62 6f 74 74 |t%,rectP|tr&.bott|
|00001400| 6f 6d 25 29 0d 54 65 78 | 74 42 6f 78 28 53 74 72 |om%).Tex|tBox(Str|
|00001410| 50 74 72 26 2b 31 2c 70 | 65 65 6b 28 53 74 72 50 |Ptr&+1,p|eek(StrP|
|00001420| 74 72 26 29 2c 23 52 65 | 63 74 50 74 72 26 2c 5f |tr&),#Re|ctPtr&,_|
|00001430| 74 65 4a 75 73 74 43 65 | 6e 74 65 72 29 0d 45 4e |teJustCe|nter).EN|
|00001440| 44 20 46 4e 0d 0d 52 55 | 4e 54 49 4d 45 20 44 45 |D FN..RU|NTIME DE|
|00001450| 46 20 4c 42 4f 58 28 40 | 52 65 63 74 50 74 72 26 |F LBOX(@|RectPtr&|
|00001460| 2c 40 53 74 72 50 74 72 | 26 29 0d 27 7e 27 0d 66 |,@StrPtr|&).'~'.f|
|00001470| 6e 20 75 73 65 4c 69 74 | 65 47 72 61 66 57 6e 64 |n useLit|eGrafWnd|
|00001480| 28 72 65 63 74 50 74 72 | 26 2e 72 69 67 68 74 25 |(rectPtr|&.right%|
|00001490| 2c 72 65 63 74 50 74 72 | 26 2e 62 6f 74 74 6f 6d |,rectPtr|&.bottom|
|000014a0| 25 29 0d 54 65 78 74 42 | 6f 78 28 53 74 72 50 74 |%).TextB|ox(StrPt|
|000014b0| 72 26 2b 31 2c 70 65 65 | 6b 28 53 74 72 50 74 72 |r&+1,pee|k(StrPtr|
|000014c0| 26 29 2c 23 52 65 63 74 | 50 74 72 26 2c 5f 74 65 |&),#Rect|Ptr&,_te|
|000014d0| 4a 75 73 74 4c 65 66 74 | 29 0d 45 4e 44 20 46 4e |JustLeft|).END FN|
|000014e0| 0d 0d 52 55 4e 54 49 4d | 45 20 44 45 46 20 52 42 |..RUNTIM|E DEF RB|
|000014f0| 4f 58 28 40 52 65 63 74 | 50 74 72 26 2c 40 53 74 |OX(@Rect|Ptr&,@St|
|00001500| 72 50 74 72 26 29 0d 27 | 7e 27 0d 66 6e 20 75 73 |rPtr&).'|~'.fn us|
|00001510| 65 4c 69 74 65 47 72 61 | 66 57 6e 64 28 72 65 63 |eLiteGra|fWnd(rec|
|00001520| 74 50 74 72 26 2e 72 69 | 67 68 74 25 2c 72 65 63 |tPtr&.ri|ght%,rec|
|00001530| 74 50 74 72 26 2e 62 6f | 74 74 6f 6d 25 29 0d 54 |tPtr&.bo|ttom%).T|
|00001540| 65 78 74 42 6f 78 28 53 | 74 72 50 74 72 26 2b 31 |extBox(S|trPtr&+1|
|00001550| 2c 70 65 65 6b 28 53 74 | 72 50 74 72 26 29 2c 23 |,peek(St|rPtr&),#|
|00001560| 52 65 63 74 50 74 72 26 | 2c 5f 74 65 4a 75 73 74 |RectPtr&|,_teJust|
|00001570| 52 69 67 68 74 29 0d 45 | 4e 44 20 46 4e 0d 0d 52 |Right).E|ND FN..R|
|00001580| 55 4e 54 49 4d 45 20 44 | 45 46 20 54 52 55 4e 43 |UNTIME D|EF TRUNC|
|00001590| 41 54 45 28 40 53 74 72 | 50 74 72 26 29 0d 27 7e |ATE(@Str|Ptr&).'~|
|000015a0| 27 0d 64 69 6d 20 73 74 | 72 4c 65 6e 0d 73 74 72 |'.dim st|rLen.str|
|000015b0| 4c 65 6e 20 3d 20 70 65 | 65 6b 28 53 74 72 50 74 |Len = pe|ek(StrPt|
|000015c0| 72 26 29 0d 77 68 69 6c | 65 20 73 74 72 4c 65 6e |r&).whil|e strLen|
|000015d0| 20 3e 20 30 20 61 6e 64 | 20 70 65 65 6b 28 53 74 | > 0 and| peek(St|
|000015e0| 72 50 74 72 26 2b 73 74 | 72 4c 65 6e 29 20 3d 20 |rPtr&+st|rLen) = |
|000015f0| 5f 22 20 22 0d 64 65 63 | 28 73 74 72 4c 65 6e 29 |_" ".dec|(strLen)|
|00001600| 0d 57 45 4e 44 0d 70 6f | 6b 65 20 53 74 72 50 74 |.WEND.po|ke StrPt|
|00001610| 72 26 2c 73 74 72 4c 65 | 6e 0d 45 4e 44 20 46 4e |r&,strLe|n.END FN|
|00001620| 0d 0d 6c 6f 63 61 6c 0d | 72 75 6e 74 69 6d 65 20 |..local.|runtime |
|00001630| 64 65 66 20 54 49 54 4c | 45 52 45 43 54 28 40 73 |def TITL|ERECT(@s|
|00001640| 50 74 72 26 2c 78 4f 66 | 66 25 2c 40 52 65 63 74 |Ptr&,xOf|f%,@Rect|
|00001650| 50 74 72 26 29 0d 27 7e | 27 0d 66 6e 20 75 73 65 |Ptr&).'~|'.fn use|
|00001660| 4c 69 74 65 47 72 61 66 | 57 6e 64 28 72 65 63 74 |LiteGraf|Wnd(rect|
|00001670| 50 74 72 26 2e 72 69 67 | 68 74 25 2c 72 65 63 74 |Ptr&.rig|ht%,rect|
|00001680| 50 74 72 26 2e 62 6f 74 | 74 6f 6d 25 29 0d 66 72 |Ptr&.bot|tom%).fr|
|00001690| 61 6d 65 72 65 63 74 28 | 23 52 65 63 74 50 74 72 |amerect(|#RectPtr|
|000016a0| 26 29 0d 6d 6f 76 65 74 | 6f 28 52 65 63 74 50 74 |&).movet|o(RectPt|
|000016b0| 72 26 2e 6c 65 66 74 25 | 2b 78 4f 66 66 25 2c 52 |r&.left%|+xOff%,R|
|000016c0| 65 63 74 50 74 72 26 2e | 74 6f 70 25 2b 34 29 0d |ectPtr&.|top%+4).|
|000016d0| 63 61 6c 6c 20 74 65 78 | 74 6d 6f 64 65 28 30 29 |call tex|tmode(0)|
|000016e0| 0d 64 72 61 77 73 74 72 | 69 6e 67 28 23 73 50 74 |.drawstr|ing(#sPt|
|000016f0| 72 26 29 0d 65 6e 64 20 | 66 6e 0d 0d 6c 6f 63 61 |r&).end |fn..loca|
|00001700| 6c 20 6d 6f 64 65 0d 64 | 69 6d 20 40 73 69 63 6e |l mode.d|im @sicn|
|00001710| 26 0d 44 49 4d 20 40 73 | 72 63 52 6f 77 42 79 74 |&.DIM @s|rcRowByt|
|00001720| 65 73 25 0d 64 69 6d 20 | 40 73 74 2c 73 6c 2c 73 |es%.dim |@st,sl,s|
|00001730| 62 2c 73 72 0d 64 69 6d | 20 40 64 74 2c 64 6c 2c |b,sr.dim| @dt,dl,|
|00001740| 64 62 2c 64 72 0d 64 69 | 6d 20 40 6e 6f 77 50 6f |db,dr.di|m @nowPo|
|00001750| 72 74 26 0d 72 75 6e 74 | 69 6d 65 20 64 65 66 20 |rt&.runt|ime def |
|00001760| 50 4c 4f 54 53 49 43 4e | 28 78 26 2c 79 26 2c 72 |PLOTSICN|(x&,y&,r|
|00001770| 65 73 49 44 26 29 0d 27 | 7e 27 0d 66 6e 20 75 73 |esID&).'|~'.fn us|
|00001780| 65 4c 69 74 65 47 72 61 | 66 57 6e 64 28 78 26 2b |eLiteGra|fWnd(x&+|
|00001790| 31 36 2c 79 26 2b 31 36 | 29 0d 73 69 63 6e 26 20 |16,y&+16|).sicn& |
|000017a0| 3d 20 66 6e 20 67 65 74 | 72 65 73 6f 75 72 63 65 |= fn get|resource|
|000017b0| 28 5f 22 53 49 43 4e 22 | 2c 72 65 73 49 44 26 29 |(_"SICN"|,resID&)|
|000017c0| 0d 6c 6f 6e 67 20 69 66 | 20 73 69 63 6e 26 0d 73 |.long if| sicn&.s|
|000017d0| 69 63 6e 26 20 3d 20 5b | 73 69 63 6e 26 5d 0d 73 |icn& = [|sicn&].s|
|000017e0| 72 63 52 6f 77 42 79 74 | 65 73 25 20 3d 20 32 0d |rcRowByt|es% = 2.|
|000017f0| 73 65 74 72 65 63 74 28 | 73 74 2c 30 2c 30 2c 31 |setrect(|st,0,0,1|
|00001800| 36 2c 31 36 29 0d 73 65 | 74 72 65 63 74 28 64 74 |6,16).se|trect(dt|
|00001810| 2c 78 26 2c 79 26 2c 78 | 26 2b 31 36 2c 79 26 2b |,x&,y&,x|&+16,y&+|
|00001820| 31 36 29 0d 47 65 74 50 | 6f 72 74 28 6e 6f 77 50 |16).GetP|ort(nowP|
|00001830| 6f 72 74 26 29 0d 43 6f | 70 79 42 69 74 73 28 23 |ort&).Co|pyBits(#|
|00001840| 40 73 69 63 6e 26 2c 23 | 6e 6f 77 50 6f 72 74 26 |@sicn&,#|nowPort&|
|00001850| 2b 32 2c 73 74 2c 64 74 | 2c 30 2c 30 29 0d 65 6e |+2,st,dt|,0,0).en|
|00001860| 64 20 69 66 0d 65 6e 64 | 20 66 6e 0d 0d 4c 4f 43 |d if.end| fn..LOC|
|00001870| 41 4c 0d 44 49 4d 20 46 | 6f 6e 74 49 6e 66 6f 3b |AL.DIM F|ontInfo;|
|00001880| 30 2c 41 73 63 65 6e 74 | 2c 44 65 63 65 6e 74 2c |0,Ascent|,Decent,|
|00001890| 77 64 74 68 2c 4c 65 61 | 64 69 6e 67 0d 52 55 4e |wdth,Lea|ding.RUN|
|000018a0| 54 49 4d 45 20 55 53 52 | 20 46 4f 4e 54 48 45 49 |TIME USR| FONTHEI|
|000018b0| 47 48 54 0d 27 7e 27 0d | 47 65 74 46 6f 6e 74 49 |GHT.'~'.|GetFontI|
|000018c0| 6e 66 6f 28 46 6f 6e 74 | 49 6e 66 6f 29 0d 45 4e |nfo(Font|Info).EN|
|000018d0| 44 20 46 4e 20 3d 20 41 | 73 63 65 6e 74 2b 44 65 |D FN = A|scent+De|
|000018e0| 63 65 6e 74 2b 4c 65 61 | 64 69 6e 67 0d 0d 52 55 |cent+Lea|ding..RU|
|000018f0| 4e 54 49 4d 45 20 55 53 | 52 20 52 4f 55 4e 44 28 |NTIME US|R ROUND(|
|00001900| 66 23 29 0d 27 7e 27 0d | 45 4e 44 20 46 4e 20 3d |f#).'~'.|END FN =|
|00001910| 20 69 6e 74 28 66 23 29 | 0d 0d 72 75 6e 74 69 6d | int(f#)|..runtim|
|00001920| 65 20 75 73 72 20 72 6f | 75 6e 64 55 70 28 66 23 |e usr ro|undUp(f#|
|00001930| 29 27 20 7b 20 31 2f 31 | 38 2f 30 31 20 63 73 7d |)' { 1/1|8/01 cs}|
|00001940| 0d 27 7e 27 32 0d 69 66 | 20 66 72 61 63 28 66 23 |.'~'2.if| frac(f#|
|00001950| 29 20 3c 3e 20 30 2e 30 | 20 74 68 65 6e 20 66 23 |) <> 0.0| then f#|
|00001960| 20 2b 3d 20 73 67 6e 28 | 66 23 29 0d 65 6e 64 20 | += sgn(|f#).end |
|00001970| 66 6e 20 3d 20 66 69 78 | 28 66 23 29 0d 0d 72 75 |fn = fix|(f#)..ru|
|00001980| 6e 74 69 6d 65 20 75 73 | 72 20 72 6f 75 6e 64 44 |ntime us|r roundD|
|00001990| 6f 77 6e 28 66 23 29 27 | 20 7b 20 31 2f 31 38 2f |own(f#)'| { 1/18/|
|000019a0| 30 31 20 63 73 7d 0d 27 | 7e 27 32 0d 65 6e 64 20 |01 cs}.'|~'2.end |
|000019b0| 66 6e 20 3d 20 66 69 78 | 28 66 23 29 0d 0d 52 55 |fn = fix|(f#)..RU|
|000019c0| 4e 54 49 4d 45 20 55 53 | 52 20 41 42 53 28 72 65 |NTIME US|R ABS(re|
|000019d0| 73 75 6c 74 26 29 0d 27 | 7e 27 0d 45 4e 44 20 46 |sult&).'|~'.END F|
|000019e0| 4e 20 3d 20 61 62 73 28 | 72 65 73 75 6c 74 26 29 |N = abs(|result&)|
|000019f0| 0d 0d 23 69 66 20 64 65 | 66 20 5f 46 42 49 49 52 |..#if de|f _FBIIR|
|00001a00| 75 6e 74 69 6d 65 0d 72 | 75 6e 74 69 6d 65 20 75 |untime.r|untime u|
|00001a10| 73 72 20 48 61 6e 64 6c | 65 32 42 74 6e 28 72 65 |sr Handl|e2Btn(re|
|00001a20| 73 75 6c 74 26 29 0d 23 | 69 66 20 63 61 72 62 6f |sult&).#|if carbo|
|00001a30| 6e 6c 69 62 27 44 61 74 | 65 20 7b 20 31 31 2f 33 |nlib'Dat|e { 11/3|
|00001a40| 30 2f 30 31 20 7d 0d 72 | 65 73 75 6c 74 26 20 3d |0/01 }.r|esult& =|
|00001a50| 20 28 66 6e 20 67 65 74 | 63 6f 6e 74 72 6f 6c 72 | (fn get|controlr|
|00001a60| 65 66 65 72 65 6e 63 65 | 28 72 65 73 75 6c 74 26 |eference|(result&|
|00001a70| 29 20 3e 3e 20 31 36 29 | 20 41 4e 44 20 30 78 31 |) >> 16)| AND 0x1|
|00001a80| 46 46 46 2f 2f 46 42 20 | 49 49 20 43 6f 6e 74 72 |FFF//FB |II Contr|
|00001a90| 6f 6c 20 6e 75 6d 62 65 | 72 0d 23 65 6c 73 65 0d |ol numbe|r.#else.|
|00001aa0| 72 65 73 75 6c 74 26 20 | 3d 20 7b 5b 72 65 73 75 |result& |= {[resu|
|00001ab0| 6c 74 26 5d 20 2b 20 5f | 43 6f 6e 74 72 6c 52 46 |lt&] + _|ContrlRF|
|00001ac0| 43 6f 6e 7d 20 41 4e 44 | 20 30 78 31 46 46 46 2f |Con} AND| 0x1FFF/|
|00001ad0| 2f 46 42 20 49 49 20 43 | 6f 6e 74 72 6f 6c 20 6e |/FB II C|ontrol n|
|00001ae0| 75 6d 62 65 72 0d 23 65 | 6e 64 69 66 0d 65 6e 64 |umber.#e|ndif.end|
|00001af0| 20 66 6e 20 3d 20 72 65 | 73 75 6c 74 26 0d 23 65 | fn = re|sult&.#e|
|00001b00| 6e 64 69 66 0d 0d 23 69 | 66 20 64 65 66 20 5f 46 |ndif..#i|f def _F|
|00001b10| 42 49 49 52 75 6e 74 69 | 6d 65 20 6f 72 20 64 65 |BIIRunti|me or de|
|00001b20| 66 20 5f 61 70 70 65 61 | 72 61 6e 63 65 52 75 6e |f _appea|ranceRun|
|00001b30| 74 69 6d 65 0d 64 65 66 | 20 66 6e 20 46 42 47 65 |time.def| fn FBGe|
|00001b40| 74 57 6e 64 4e 75 6d 62 | 65 72 28 20 77 50 74 72 |tWndNumb|er( wPtr|
|00001b50| 20 61 73 20 70 74 72 20 | 29 0d 72 75 6e 74 69 6d | as ptr |).runtim|
|00001b60| 65 20 75 73 72 20 57 70 | 74 72 32 57 4e 75 6d 28 |e usr Wp|tr2WNum(|
|00001b70| 72 65 73 75 6c 74 26 29 | 0d 65 6e 64 20 66 6e 20 |result&)|.end fn |
|00001b80| 3d 20 66 6e 20 46 42 47 | 65 74 57 6e 64 4e 75 6d |= fn FBG|etWndNum|
|00001b90| 62 65 72 28 72 65 73 75 | 6c 74 26 29 0d 23 65 6e |ber(resu|lt&).#en|
|00001ba0| 64 69 66 0d 0d 23 69 66 | 20 64 65 66 20 5f 61 70 |dif..#if| def _ap|
|00001bb0| 70 65 61 72 61 6e 63 65 | 52 75 6e 74 69 6d 65 0d |pearance|Runtime.|
|00001bc0| 72 75 6e 74 69 6d 65 20 | 75 73 72 20 48 61 6e 64 |runtime |usr Hand|
|00001bd0| 6c 65 32 42 74 6e 28 20 | 63 48 6e 64 6c 20 61 73 |le2Btn( |cHndl as|
|00001be0| 20 5e 5e 43 6f 6e 74 72 | 6f 6c 52 65 63 6f 72 64 | ^^Contr|olRecord|
|00001bf0| 20 29 0d 65 6e 64 20 66 | 6e 20 3d 20 66 6e 20 46 | ).end f|n = fn F|
|00001c00| 42 67 65 74 43 6f 6e 74 | 72 6f 6c 52 65 66 28 20 |BgetCont|rolRef( |
|00001c10| 63 48 6e 64 6c 20 29 0d | 23 65 6e 64 69 66 0d 0d |cHndl ).|#endif..|
|00001c20| 2f 2a 0d 20 20 20 20 20 | 4d 6f 64 69 66 69 65 64 |/*. |Modified|
|00001c30| 20 20 31 30 2f 35 2f 30 | 30 20 74 6f 20 77 6f 72 | 10/5/0|0 to wor|
|00001c40| 6b 20 77 69 74 68 20 68 | 61 6e 64 6c 65 73 20 6f |k with h|andles o|
|00001c50| 72 20 72 65 73 6f 75 72 | 63 65 73 0d 2a 2f 0d 4c |r resour|ces.*/.L|
|00001c60| 4f 43 41 4c 0d 44 49 4d | 20 6f 66 66 73 65 74 26 |OCAL.DIM| offset&|
|00001c70| 2c 72 48 6e 64 6c 26 0d | 52 55 4e 54 49 4d 45 20 |,rHndl&.|RUNTIME |
|00001c80| 55 53 52 20 53 54 52 4f | 46 46 53 45 54 28 65 6c |USR STRO|FFSET(el|
|00001c90| 65 6d 65 6e 74 26 2c 72 | 49 44 26 29 0d 27 7e 27 |ement&,r|ID&).'~'|
|00001ca0| 0d 6f 66 66 73 65 74 26 | 20 3d 20 30 0d 6c 6f 6e |.offset&| = 0.lon|
|00001cb0| 67 20 69 66 20 72 49 44 | 26 20 3e 3e 20 31 35 27 |g if rID|& >> 15'|
|00001cc0| 68 61 6e 64 6c 65 3f 0d | 72 48 6e 64 6c 26 20 3d |handle?.|rHndl& =|
|00001cd0| 20 72 49 44 26 0d 78 65 | 6c 73 65 27 6f 72 20 72 | rID&.xe|lse'or r|
|00001ce0| 65 73 6f 75 72 63 65 20 | 49 44 3f 0d 72 48 6e 64 |esource |ID?.rHnd|
|00001cf0| 6c 26 20 3d 20 66 6e 20 | 67 65 74 72 65 73 6f 75 |l& = fn |getresou|
|00001d00| 72 63 65 28 5f 22 53 54 | 52 23 22 2c 72 49 44 26 |rce(_"ST|R#",rID&|
|00001d10| 29 0d 65 6e 64 20 69 66 | 0d 6c 6f 6e 67 20 69 66 |).end if|.long if|
|00001d20| 20 72 48 6e 64 6c 26 0d | 6f 66 66 73 65 74 26 20 | rHndl&.|offset& |
|00001d30| 3d 20 32 0d 4c 4f 4e 47 | 20 49 46 20 65 6c 65 6d |= 2.LONG| IF elem|
|00001d40| 65 6e 74 26 0d 44 45 43 | 28 65 6c 65 6d 65 6e 74 |ent&.DEC|(element|
|00001d50| 26 29 0d 57 48 49 4c 45 | 20 65 6c 65 6d 65 6e 74 |&).WHILE| element|
|00001d60| 26 0d 6f 66 66 73 65 74 | 26 20 3d 20 6f 66 66 73 |&.offset|& = offs|
|00001d70| 65 74 26 20 2b 20 50 45 | 45 4b 28 5b 72 48 6e 64 |et& + PE|EK([rHnd|
|00001d80| 6c 26 5d 2b 6f 66 66 73 | 65 74 26 29 20 2b 20 31 |l&]+offs|et&) + 1|
|00001d90| 0d 44 45 43 28 65 6c 65 | 6d 65 6e 74 26 29 0d 57 |.DEC(ele|ment&).W|
|00001da0| 45 4e 44 0d 45 4e 44 20 | 49 46 0d 65 6e 64 20 69 |END.END |IF.end i|
|00001db0| 66 0d 45 4e 44 20 46 4e | 20 3d 20 6f 66 66 73 65 |f.END FN| = offse|
|00001dc0| 74 26 0d 0d 4c 4f 43 41 | 4c 0d 44 49 4d 20 72 65 |t&..LOCA|L.DIM re|
|00001dd0| 73 75 6c 74 26 0d 52 55 | 4e 54 49 4d 45 20 55 53 |sult&.RU|NTIME US|
|00001de0| 52 20 4f 50 45 4e 52 46 | 50 45 52 4d 28 40 53 74 |R OPENRF|PERM(@St|
|00001df0| 72 50 74 72 26 2c 76 26 | 2c 66 26 29 0d 27 7e 27 |rPtr&,v&|,f&).'~'|
|00001e00| 0d 23 69 66 20 63 61 72 | 62 6f 6e 6c 69 62 0d 44 |.#if car|bonlib.D|
|00001e10| 49 4d 20 66 6c 64 72 53 | 70 65 63 20 61 73 20 66 |IM fldrS|pec as f|
|00001e20| 73 53 70 65 63 27 53 75 | 62 20 66 6f 6c 64 65 72 |sSpec'Su|b folder|
|00001e30| 20 69 6e 20 70 72 65 66 | 73 20 66 6f 6c 64 65 72 | in pref|s folder|
|00001e40| 0d 64 69 6d 20 65 72 72 | 0d 65 72 72 20 3d 20 46 |.dim err|.err = F|
|00001e50| 4e 20 46 42 4d 61 6b 65 | 46 53 53 70 65 63 28 76 |N FBMake|FSSpec(v|
|00001e60| 26 2c 30 2c 53 74 72 50 | 74 72 26 2e 6e 69 6c 24 |&,0,StrP|tr&.nil$|
|00001e70| 2c 66 6c 64 72 53 70 65 | 63 29 0d 72 65 73 75 6c |,fldrSpe|c).resul|
|00001e80| 74 26 20 3d 20 46 4e 20 | 46 53 50 4f 50 45 4e 52 |t& = FN |FSPOPENR|
|00001e90| 45 53 46 49 4c 45 28 66 | 6c 64 72 53 70 65 63 2c |ESFILE(f|ldrSpec,|
|00001ea0| 5f 66 73 52 64 57 72 50 | 65 72 6d 29 0d 23 65 6c |_fsRdWrP|erm).#el|
|00001eb0| 73 65 0d 72 65 73 75 6c | 74 26 20 3d 20 46 4e 20 |se.resul|t& = FN |
|00001ec0| 4f 50 45 4e 52 46 50 45 | 52 4d 28 23 53 74 72 50 |OPENRFPE|RM(#StrP|
|00001ed0| 74 72 26 2c 76 26 2c 66 | 26 29 0d 23 65 6e 64 69 |tr&,v&,f|&).#endi|
|00001ee0| 66 0d 45 4e 44 20 46 4e | 20 3d 20 72 65 73 75 6c |f.END FN| = resul|
|00001ef0| 74 26 0d 0d 27 7e 27 31 | 0d 6c 6f 63 61 6c 20 6d |t&..'~'1|.local m|
|00001f00| 6f 64 65 27 44 61 74 65 | 20 7b 20 33 2f 31 33 2f |ode'Date| { 3/13/|
|00001f10| 30 32 20 7d 0d 72 75 6e | 74 69 6d 65 20 64 65 66 |02 }.run|time def|
|00001f20| 20 43 72 65 61 74 65 52 | 65 73 46 69 6c 65 28 40 | CreateR|esFile(@|
|00001f30| 73 50 74 72 26 29 0d 27 | 7e 27 0d 23 69 66 20 63 |sPtr&).'|~'.#if c|
|00001f40| 61 72 62 6f 6e 6c 69 62 | 0d 44 49 4d 20 65 72 72 |arbonlib|.DIM err|
|00001f50| 2c 66 69 6c 65 53 70 65 | 63 20 61 73 20 66 73 53 |,fileSpe|c as fsS|
|00001f60| 70 65 63 27 65 72 72 6f | 72 2c 46 69 6c 65 53 70 |pec'erro|r,FileSp|
|00001f70| 65 63 0d 64 69 6d 20 70 | 42 6c 6b 2e 31 32 38 27 |ec.dim p|Blk.128'|
|00001f80| 44 75 6d 6d 79 20 70 62 | 6c 6f 63 6b 0d 65 72 72 |Dummy pb|lock.err|
|00001f90| 20 3d 20 66 6e 20 47 65 | 74 56 6f 6c 28 20 40 70 | = fn Ge|tVol( @p|
|00001fa0| 42 6c 6b 20 29 20 2f 2f | 20 47 65 74 20 63 75 72 |Blk ) //| Get cur|
|00001fb0| 72 65 6e 74 20 56 6f 6c | 75 6d 65 0d 65 72 72 20 |rent Vol|ume.err |
|00001fc0| 3d 20 46 4e 20 46 42 4d | 61 6b 65 46 53 53 70 65 |= FN FBM|akeFSSpe|
|00001fd0| 63 28 70 42 6c 6b 2e 69 | 6f 56 52 65 66 4e 75 6d |c(pBlk.i|oVRefNum|
|00001fe0| 25 2c 30 2c 23 73 50 74 | 72 26 2c 66 69 6c 65 53 |%,0,#sPt|r&,fileS|
|00001ff0| 70 65 63 29 2f 2f 20 4d | 61 6b 65 20 46 53 53 70 |pec)// M|ake FSSp|
|00002000| 65 63 0d 63 61 6c 6c 20 | 46 53 70 43 72 65 61 74 |ec.call |FSpCreat|
|00002010| 65 52 65 73 46 69 6c 65 | 28 66 69 6c 65 53 70 65 |eResFile|(fileSpe|
|00002020| 63 2c 5f 22 52 53 45 44 | 22 2c 5f 22 72 73 72 63 |c,_"RSED|",_"rsrc|
|00002030| 22 2c 5f 73 6d 53 79 73 | 74 65 6d 53 63 72 69 70 |",_smSys|temScrip|
|00002040| 74 29 2f 2f 20 43 72 65 | 61 74 65 20 52 73 72 63 |t)// Cre|ate Rsrc|
|00002050| 20 46 69 6c 65 0d 23 65 | 6c 73 65 0d 63 61 6c 6c | File.#e|lse.call|
|00002060| 20 63 72 65 61 74 65 72 | 65 73 66 69 6c 65 28 23 | creater|esfile(#|
|00002070| 73 50 74 72 26 29 0d 23 | 65 6e 64 69 66 0d 65 6e |sPtr&).#|endif.en|
|00002080| 64 20 66 6e 27 44 61 74 | 65 20 7b 20 33 2f 31 33 |d fn'Dat|e { 3/13|
|00002090| 2f 30 32 20 7d 0d 27 7e | 27 31 0d 0d 4c 4f 43 41 |/02 }.'~|'1..LOCA|
|000020a0| 4c 0d 44 49 4d 20 40 20 | 4f 6c 64 50 6f 72 74 26 |L.DIM @ |OldPort&|
|000020b0| 0d 44 49 4d 20 54 68 65 | 50 69 63 74 26 0d 52 55 |.DIM The|Pict&.RU|
|000020c0| 4e 54 49 4d 45 20 55 53 | 52 20 47 45 54 50 49 43 |NTIME US|R GETPIC|
|000020d0| 54 28 40 72 65 63 74 50 | 74 72 26 29 0d 27 7e 27 |T(@rectP|tr&).'~'|
|000020e0| 0d 47 65 74 50 6f 72 74 | 28 4f 6c 64 50 6f 72 74 |.GetPort|(OldPort|
|000020f0| 26 29 0d 54 68 65 50 69 | 63 74 26 20 3d 20 66 6e |&).ThePi|ct& = fn|
|00002100| 20 4f 70 65 6e 50 69 63 | 74 75 72 65 28 23 72 65 | OpenPic|ture(#re|
|00002110| 63 74 50 74 72 26 29 0d | 43 6f 70 79 42 69 74 73 |ctPtr&).|CopyBits|
|00002120| 28 23 4f 6c 64 50 6f 72 | 74 26 2b 32 2c 23 4f 6c |(#OldPor|t&+2,#Ol|
|00002130| 64 50 6f 72 74 26 2b 32 | 2c 23 72 65 63 74 50 74 |dPort&+2|,#rectPt|
|00002140| 72 26 2c 23 72 65 63 74 | 50 74 72 26 2c 30 2c 30 |r&,#rect|Ptr&,0,0|
|00002150| 29 0d 43 6c 6f 73 65 50 | 69 63 74 75 72 65 28 29 |).CloseP|icture()|
|00002160| 0d 45 4e 44 20 46 4e 20 | 3d 20 54 68 65 50 69 63 |.END FN |= ThePic|
|00002170| 74 26 0d 0d 6c 6f 63 61 | 6c 0d 64 69 6d 20 40 20 |t&..loca|l.dim @ |
|00002180| 70 6f 72 74 26 2c 70 26 | 0d 72 75 6e 74 69 6d 65 |port&,p&|.runtime|
|00002190| 20 64 65 66 20 4c 43 4f | 50 59 27 4d 6f 64 69 66 | def LCO|PY'Modif|
|000021a0| 69 65 64 20 7b 20 36 2f | 32 33 2f 30 30 20 7d 20 |ied { 6/|23/00 } |
|000021b0| 41 2e 47 2e 0d 63 61 6c | 6c 20 67 65 74 70 6f 72 |A.G..cal|l getpor|
|000021c0| 74 28 70 6f 72 74 26 29 | 0d 70 26 20 3d 20 75 73 |t(port&)|.p& = us|
|000021d0| 72 20 67 65 74 70 69 63 | 74 28 70 6f 72 74 26 2e |r getpic|t(port&.|
|000021e0| 70 6f 72 74 72 65 63 74 | 25 29 0d 6c 6f 6e 67 20 |portrect|%).long |
|000021f0| 69 66 20 70 26 0d 72 6f | 75 74 65 20 31 32 38 0d |if p&.ro|ute 128.|
|00002200| 63 61 6c 6c 20 64 72 61 | 77 70 69 63 74 75 72 65 |call dra|wpicture|
|00002210| 28 70 26 2c 70 6f 72 74 | 26 2e 70 6f 72 74 72 65 |(p&,port|&.portre|
|00002220| 63 74 25 29 0d 63 61 6c | 6c 20 6b 69 6c 6c 70 69 |ct%).cal|l killpi|
|00002230| 63 74 75 72 65 28 70 26 | 29 0d 72 6f 75 74 65 20 |cture(p&|).route |
|00002240| 30 0d 63 6c 6f 73 65 20 | 6c 70 72 69 6e 74 0d 65 |0.close |lprint.e|
|00002250| 6e 64 20 69 66 0d 63 61 | 6c 6c 20 53 65 74 70 6f |nd if.ca|ll Setpo|
|00002260| 72 74 28 70 6f 72 74 26 | 29 0d 65 6e 64 20 66 6e |rt(port&|).end fn|
|00002270| 0d 0d 2f 2f 20 61 6c 6c | 6f 63 61 74 65 20 70 6f |..// all|ocate po|
|00002280| 69 6e 74 65 72 0d 72 75 | 6e 74 69 6d 65 20 75 73 |inter.ru|ntime us|
|00002290| 72 20 75 73 72 30 28 73 | 69 7a 65 26 29 0d 27 7e |r usr0(s|ize&).'~|
|000022a0| 27 0d 65 6e 64 20 66 6e | 20 3d 20 66 6e 20 6e 65 |'.end fn| = fn ne|
|000022b0| 77 70 74 72 28 73 69 7a | 65 26 29 0d 0d 2f 2f 20 |wptr(siz|e&)..// |
|000022c0| 64 69 73 70 6f 73 65 20 | 6f 66 20 70 6f 69 6e 74 |dispose |of point|
|000022d0| 65 72 0d 6c 6f 63 61 6c | 0d 64 69 6d 20 65 72 72 |er.local|.dim err|
|000022e0| 0d 72 75 6e 74 69 6d 65 | 20 75 73 72 20 75 73 72 |.runtime| usr usr|
|000022f0| 31 28 70 20 61 73 20 70 | 74 72 29 0d 27 7e 27 0d |1(p as p|tr).'~'.|
|00002300| 69 66 20 70 20 74 68 65 | 6e 20 63 61 6c 6c 20 64 |if p the|n call d|
|00002310| 69 73 70 6f 73 65 70 74 | 72 28 70 29 0d 65 6e 64 |isposept|r(p).end|
|00002320| 20 66 6e 20 3d 20 5f 6e | 6f 45 72 72 0d 0d 2f 2f | fn = _n|oErr..//|
|00002330| 20 73 71 75 61 72 65 20 | 72 6f 6f 74 0d 72 75 6e | square |root.run|
|00002340| 74 69 6d 65 20 75 73 72 | 20 75 73 72 32 28 78 26 |time usr| usr2(x&|
|00002350| 29 0d 27 7e 27 0d 78 26 | 20 3d 20 53 51 52 28 78 |).'~'.x&| = SQR(x|
|00002360| 26 29 0d 65 6e 64 20 66 | 6e 20 3d 20 78 26 0d 0d |&).end f|n = x&..|
|00002370| 2f 2f 20 6c 6f 63 6b 20 | 68 61 6e 64 6c 65 0d 6c |// lock |handle.l|
|00002380| 6f 63 61 6c 0d 64 69 6d | 20 65 72 72 0d 72 75 6e |ocal.dim| err.run|
|00002390| 74 69 6d 65 20 75 73 72 | 20 75 73 72 33 28 68 20 |time usr| usr3(h |
|000023a0| 61 73 20 68 61 6e 64 6c | 65 29 0d 27 7e 27 0d 69 |as handl|e).'~'.i|
|000023b0| 66 20 68 20 74 68 65 6e | 20 63 61 6c 6c 20 68 6c |f h then| call hl|
|000023c0| 6f 63 6b 28 68 29 0d 65 | 6e 64 20 66 6e 20 3d 20 |ock(h).e|nd fn = |
|000023d0| 5f 6e 6f 45 72 72 0d 0d | 2f 2f 20 61 64 64 72 65 |_noErr..|// addre|
|000023e0| 73 73 20 6f 66 20 66 69 | 6c 65 20 69 6f 20 62 6c |ss of fi|le io bl|
|000023f0| 6f 63 6b 0d 63 6f 6d 70 | 69 6c 65 20 6c 6f 6e 67 |ock.comp|ile long|
|00002400| 20 69 66 20 64 65 66 20 | 5f 46 42 4e 65 67 46 69 | if def |_FBNegFi|
|00002410| 6c 65 52 65 66 73 0d 72 | 75 6e 74 69 6d 65 20 75 |leRefs.r|untime u|
|00002420| 73 72 20 75 73 72 34 28 | 46 69 6c 65 52 65 66 26 |sr usr4(|FileRef&|
|00002430| 29 0d 27 7e 27 0d 65 6e | 64 20 66 6e 20 3d 20 67 |).'~'.en|d fn = g|
|00002440| 46 42 46 69 6c 65 73 26 | 28 46 69 6c 65 52 65 66 |FBFiles&|(FileRef|
|00002450| 26 2d 5f 46 42 4e 65 67 | 46 69 6c 65 52 65 66 73 |&-_FBNeg|FileRefs|
|00002460| 29 0d 63 6f 6d 70 69 6c | 65 20 78 65 6c 73 65 0d |).compil|e xelse.|
|00002470| 72 75 6e 74 69 6d 65 20 | 75 73 72 20 75 73 72 34 |runtime |usr usr4|
|00002480| 28 46 69 6c 65 52 65 66 | 26 29 0d 65 6e 64 20 66 |(FileRef|&).end f|
|00002490| 6e 20 3d 20 30 0d 63 6f | 6d 70 69 6c 65 20 65 6e |n = 0.co|mpile en|
|000024a0| 64 20 69 66 0d 0d 2f 2f | 20 61 6c 6c 6f 63 61 74 |d if..//| allocat|
|000024b0| 65 20 68 61 6e 64 6c 65 | 0d 72 75 6e 74 69 6d 65 |e handle|.runtime|
|000024c0| 20 75 73 72 20 75 73 72 | 35 28 73 69 7a 65 26 29 | usr usr|5(size&)|
|000024d0| 0d 27 7e 27 0d 65 6e 64 | 20 66 6e 20 3d 20 66 6e |.'~'.end| fn = fn|
|000024e0| 20 6e 65 77 68 61 6e 64 | 6c 65 63 6c 65 61 72 28 | newhand|leclear(|
|000024f0| 73 69 7a 65 26 29 0d 0d | 2f 2f 20 64 69 73 70 6f |size&)..|// dispo|
|00002500| 73 65 20 6f 66 20 68 61 | 6e 64 6c 65 0d 6c 6f 63 |se of ha|ndle.loc|
|00002510| 61 6c 0d 64 69 6d 20 65 | 72 72 0d 72 75 6e 74 69 |al.dim e|rr.runti|
|00002520| 6d 65 20 75 73 72 20 75 | 73 72 36 28 68 20 61 73 |me usr u|sr6(h as|
|00002530| 20 68 61 6e 64 6c 65 29 | 0d 27 7e 27 0d 69 66 20 | handle)|.'~'.if |
|00002540| 68 20 74 68 65 6e 20 63 | 61 6c 6c 20 64 69 73 70 |h then c|all disp|
|00002550| 6f 73 65 68 61 6e 64 6c | 65 28 68 29 0d 65 6e 64 |osehandl|e(h).end|
|00002560| 20 66 6e 20 3d 20 5f 6e | 6f 45 72 72 0d 0d 2f 2f | fn = _n|oErr..//|
|00002570| 20 75 6e 6c 6f 63 6b 20 | 68 61 6e 64 6c 65 0d 6c | unlock |handle.l|
|00002580| 6f 63 61 6c 0d 64 69 6d | 20 65 72 72 0d 72 75 6e |ocal.dim| err.run|
|00002590| 74 69 6d 65 20 75 73 72 | 20 75 73 72 37 28 68 20 |time usr| usr7(h |
|000025a0| 61 73 20 68 61 6e 64 6c | 65 29 0d 27 7e 27 0d 69 |as handl|e).'~'.i|
|000025b0| 66 20 68 20 74 68 65 6e | 20 63 61 6c 6c 20 68 75 |f h then| call hu|
|000025c0| 6e 6c 6f 63 6b 28 68 29 | 0d 65 6e 64 20 66 6e 20 |nlock(h)|.end fn |
|000025d0| 3d 20 5f 6e 6f 45 72 72 | 0d 0d 2f 2f 20 69 6e 74 |= _noErr|..// int|
|000025e0| 20 73 69 6e 0d 72 75 6e | 74 69 6d 65 20 75 73 72 | sin.run|time usr|
|000025f0| 20 75 73 72 38 28 78 26 | 29 0d 27 7e 27 0d 78 26 | usr8(x&|).'~'.x&|
|00002600| 20 3d 20 53 49 4e 28 78 | 26 2f 31 32 38 2a 33 2e | = SIN(x|&/128*3.|
|00002610| 31 34 31 35 39 29 2a 32 | 35 36 0d 65 6e 64 20 66 |14159)*2|56.end f|
|00002620| 6e 20 3d 20 78 26 0d 0d | 2f 2f 20 69 6e 74 20 63 |n = x&..|// int c|
|00002630| 6f 73 69 6e 65 0d 72 75 | 6e 74 69 6d 65 20 75 73 |osine.ru|ntime us|
|00002640| 72 20 75 73 72 39 28 78 | 26 29 0d 27 7e 27 0d 78 |r usr9(x|&).'~'.x|
|00002650| 26 20 3d 20 43 4f 53 28 | 78 26 2f 31 32 38 2a 33 |& = COS(|x&/128*3|
|00002660| 2e 31 34 31 35 39 29 2a | 32 35 36 0d 65 6e 64 20 |.14159)*|256.end |
|00002670| 66 6e 20 3d 20 78 26 0d | 0d 23 69 66 20 43 61 72 |fn = x&.|.#if Car|
|00002680| 62 6f 6e 4c 69 62 0d 2f | 2f 2f 20 2a 2a 2a 20 54 |bonLib./|// *** T|
|00002690| 6f 20 42 65 20 46 69 78 | 65 64 20 2a 2a 2a 20 2f |o Be Fix|ed *** /|
|000026a0| 2f 2f 0d 52 55 4e 54 49 | 4d 45 20 55 53 52 20 50 |//.RUNTI|ME USR P|
|000026b0| 52 44 52 56 52 56 45 52 | 53 0d 27 7e 27 0d 45 4e |RDRVRVER|S.'~'.EN|
|000026c0| 44 20 46 4e 20 3d 20 30 | 0d 2f 2f 2f 20 2a 2a 2a |D FN = 0|./// ***|
|000026d0| 20 54 6f 20 42 65 20 46 | 69 78 65 64 20 2a 2a 2a | To Be F|ixed ***|
|000026e0| 20 2f 2f 2f 0d 23 65 6c | 73 65 0d 52 55 4e 54 49 | ///.#el|se.RUNTI|
|000026f0| 4d 45 20 55 53 52 20 50 | 52 44 52 56 52 56 45 52 |ME USR P|RDRVRVER|
|00002700| 53 0d 27 7e 27 0d 45 4e | 44 20 46 4e 20 3d 20 66 |S.'~'.EN|D FN = f|
|00002710| 6e 20 50 72 44 72 76 72 | 56 65 72 73 0d 23 65 6e |n PrDrvr|Vers.#en|
|00002720| 64 69 66 0d 0d 52 55 4e | 54 49 4d 45 20 55 53 52 |dif..RUN|TIME USR|
|00002730| 20 45 56 45 4e 28 72 65 | 73 75 6c 74 26 29 0d 27 | EVEN(re|sult&).'|
|00002740| 7e 27 0d 45 4e 44 20 46 | 4e 20 3d 20 28 72 65 73 |~'.END F|N = (res|
|00002750| 75 6c 74 26 20 2b 20 31 | 29 20 61 6e 64 20 30 78 |ult& + 1|) and 0x|
|00002760| 46 46 46 46 46 46 46 45 | 0d 0d 6c 6f 63 61 6c 0d |FFFFFFFE|..local.|
|00002770| 64 69 6d 20 70 26 2c 65 | 26 0d 72 75 6e 74 69 6d |dim p&,e|&.runtim|
|00002780| 65 20 44 45 46 20 43 6c | 65 61 72 48 61 6e 64 6c |e DEF Cl|earHandl|
|00002790| 65 28 68 26 29 0d 27 7e | 27 0d 6c 6f 6e 67 20 69 |e(h&).'~|'.long i|
|000027a0| 66 20 68 26 0d 65 26 20 | 3d 20 66 6e 20 67 65 74 |f h&.e& |= fn get|
|000027b0| 68 61 6e 64 6c 65 73 69 | 7a 65 28 68 26 29 0d 70 |handlesi|ze(h&).p|
|000027c0| 26 20 3d 20 5b 68 26 5d | 0d 65 26 20 3d 20 28 70 |& = [h&]|.e& = (p|
|000027d0| 26 2b 65 26 29 2d 33 0d | 77 68 69 6c 65 20 70 26 |&+e&)-3.|while p&|
|000027e0| 20 3c 20 65 26 0d 26 20 | 70 26 2c 30 27 34 20 62 | < e&.& |p&,0'4 b|
|000027f0| 79 74 65 73 20 61 74 20 | 61 20 74 69 6d 65 0d 70 |ytes at |a time.p|
|00002800| 26 3d 70 26 2b 34 0d 77 | 65 6e 64 0d 65 26 3d 65 |&=p&+4.w|end.e&=e|
|00002810| 26 2b 33 0d 77 68 69 6c | 65 20 70 26 20 3c 20 65 |&+3.whil|e p& < e|
|00002820| 26 0d 70 6f 6b 65 20 70 | 26 2c 30 27 6c 61 73 74 |&.poke p|&,0'last|
|00002830| 20 66 65 77 20 62 79 74 | 65 73 0d 70 26 3d 70 26 | few byt|es.p&=p&|
|00002840| 2b 31 0d 77 65 6e 64 0d | 65 6e 64 20 69 66 0d 65 |+1.wend.|end if.e|
|00002850| 6e 64 20 66 6e 0d 0d 2f | 2f 20 54 68 69 73 20 73 |nd fn../|/ This s|
|00002860| 65 72 69 65 73 20 77 61 | 73 20 61 64 64 65 64 20 |eries wa|s added |
|00002870| 66 6f 72 20 73 75 70 70 | 6f 72 74 20 6f 66 20 74 |for supp|ort of t|
|00002880| 77 6f 20 62 79 74 65 20 | 73 79 73 74 65 6d 73 0d |wo byte |systems.|
|00002890| 72 75 6e 74 69 6d 65 20 | 64 65 66 20 73 65 74 44 |runtime |def setD|
|000028a0| 6f 75 62 6c 65 62 79 74 | 65 0d 27 7e 27 0d 6c 6f |oublebyt|e.'~'.lo|
|000028b0| 6e 67 20 69 66 20 5f 64 | 6f 75 62 6c 65 42 79 74 |ng if _d|oubleByt|
|000028c0| 65 20 3d 20 5f 66 61 6c | 73 65 0d 73 74 6f 70 20 |e = _fal|se.stop |
|000028d0| 22 43 61 6e 27 74 20 75 | 73 65 20 53 45 54 44 4f |"Can't u|se SETDO|
|000028e0| 55 42 4c 45 42 59 54 45 | 20 75 6e 6c 65 73 73 20 |UBLEBYTE| unless |
|000028f0| 27 41 6c 6c 6f 77 20 64 | 6f 75 62 6c 65 20 62 79 |'Allow d|ouble by|
|00002900| 74 65 20 73 74 72 69 6e | 67 73 27 20 69 73 20 63 |te strin|gs' is c|
|00002910| 68 65 63 6b 65 64 20 69 | 6e 20 65 64 69 74 6f 72 |hecked i|n editor|
|00002920| 20 70 72 65 66 73 2e 22 | 0d 78 65 6c 73 65 0d 67 | prefs."|.xelse.g|
|00002930| 46 42 64 6f 75 62 6c 65 | 42 79 74 65 25 20 3d 20 |FBdouble|Byte% = |
|00002940| 5f 7a 54 72 75 65 0d 65 | 6e 64 20 69 66 0d 65 6e |_zTrue.e|nd if.en|
|00002950| 64 20 66 6e 0d 0d 72 75 | 6e 74 69 6d 65 20 64 65 |d fn..ru|ntime de|
|00002960| 66 20 4c 43 41 53 45 28 | 40 73 50 74 72 26 29 0d |f LCASE(|@sPtr&).|
|00002970| 27 7e 27 0d 2f 2f 20 63 | 6f 6e 76 65 72 74 20 76 |'~'.// c|onvert v|
|00002980| 69 61 20 6c 6f 6f 6b 75 | 70 20 74 61 62 6c 65 20 |ia looku|p table |
|00002990| 20 20 20 52 6f 62 65 72 | 74 20 50 2e 20 20 32 33 | Rober|t P. 23|
|000029a0| 20 46 65 62 20 32 30 30 | 31 0d 64 69 6d 20 65 6e | Feb 200|1.dim en|
|000029b0| 64 41 64 64 72 20 61 73 | 20 70 74 72 2c 20 61 64 |dAddr as| ptr, ad|
|000029c0| 64 72 20 61 73 20 70 74 | 72 0d 61 64 64 72 20 3d |dr as pt|r.addr =|
|000029d0| 20 73 50 74 72 26 0d 65 | 6e 64 41 64 64 72 20 3d | sPtr&.e|ndAddr =|
|000029e0| 20 61 64 64 72 2e 6e 69 | 6c 60 60 20 2b 20 61 64 | addr.ni|l`` + ad|
|000029f0| 64 72 0d 77 68 69 6c 65 | 20 28 20 61 64 64 72 20 |dr.while| ( addr |
|00002a00| 3c 20 65 6e 64 41 64 64 | 72 20 29 0d 69 6e 63 28 |< endAdd|r ).inc(|
|00002a10| 20 61 64 64 72 20 29 0d | 61 64 64 72 2e 6e 69 6c | addr ).|addr.nil|
|00002a20| 60 60 20 3d 20 67 46 42 | 4c 6f 77 65 72 43 68 61 |`` = gFB|LowerCha|
|00002a30| 72 28 61 64 64 72 2e 6e | 69 6c 60 60 29 0d 77 65 |r(addr.n|il``).we|
|00002a40| 6e 64 0d 65 6e 64 20 66 | 6e 0d 0d 72 75 6e 74 69 |nd.end f|n..runti|
|00002a50| 6d 65 20 75 73 72 20 67 | 65 74 44 6f 75 62 6c 65 |me usr g|etDouble|
|00002a60| 62 79 74 65 0d 27 7e 27 | 0d 65 6e 64 20 66 6e 20 |byte.'~'|.end fn |
|00002a70| 3d 20 28 67 46 42 64 6f | 75 62 6c 65 42 79 74 65 |= (gFBdo|ubleByte|
|00002a80| 25 20 21 3d 20 5f 66 61 | 6c 73 65 29 0d 0d 72 75 |% != _fa|lse)..ru|
|00002a90| 6e 74 69 6d 65 20 64 65 | 66 20 73 65 74 53 69 6e |ntime de|f setSin|
|00002aa0| 67 6c 65 62 79 74 65 0d | 27 7e 27 0d 67 46 42 64 |glebyte.|'~'.gFBd|
|00002ab0| 6f 75 62 6c 65 42 79 74 | 65 25 20 3d 20 5f 66 61 |oubleByt|e% = _fa|
|00002ac0| 6c 73 65 0d 65 6e 64 20 | 66 6e 20 0d 0d 72 75 6e |lse.end |fn ..run|
|00002ad0| 74 69 6d 65 20 75 73 72 | 20 67 65 74 53 69 6e 67 |time usr| getSing|
|00002ae0| 6c 65 62 79 74 65 0d 27 | 7e 27 0d 65 6e 64 20 66 |lebyte.'|~'.end f|
|00002af0| 6e 20 3d 20 28 67 46 42 | 64 6f 75 62 6c 65 42 79 |n = (gFB|doubleBy|
|00002b00| 74 65 25 20 3d 20 5f 66 | 61 6c 73 65 29 0d 0d 6c |te% = _f|alse)..l|
|00002b10| 6f 63 61 6c 0d 64 69 6d | 20 72 20 20 20 20 20 61 |ocal.dim| r a|
|00002b20| 73 20 72 65 63 74 0d 64 | 69 6d 20 77 50 74 72 20 |s rect.d|im wPtr |
|00002b30| 20 61 73 20 6c 6f 6e 67 | 0d 64 69 6d 20 40 70 6f | as long|.dim @po|
|00002b40| 72 74 20 61 73 20 6c 6f | 6e 67 0d 6c 6f 63 61 6c |rt as lo|ng.local|
|00002b50| 20 66 6e 20 53 6d 61 6c | 6c 44 65 62 75 67 57 69 | fn Smal|lDebugWi|
|00002b60| 6e 64 6f 77 28 6d 73 67 | 24 29 27 5b 33 2f 31 2f |ndow(msg|$)'[3/1/|
|00002b70| 30 31 5d 20 63 73 0d 27 | 7e 27 32 0d 2f 2a 0d 20 |01] cs.'|~'2./*. |
|00002b80| 20 20 20 20 43 61 6c 63 | 20 77 69 6e 64 6f 77 20 | Calc| window |
|00002b90| 70 6f 73 20 61 6e 64 20 | 62 75 69 6c 64 0d 2a 2f |pos and |build.*/|
|00002ba0| 0d 67 65 74 70 6f 72 74 | 28 70 6f 72 74 29 0d 0d |.getport|(port)..|
|00002bb0| 77 68 69 6c 65 20 66 6e | 20 62 75 74 74 6f 6e 27 |while fn| button'|
|00002bc0| 5b 34 2f 36 2f 30 31 20 | 53 54 41 5a 5d 0d 77 65 |[4/6/01 |STAZ].we|
|00002bd0| 6e 64 0d 0d 66 6e 20 46 | 42 47 65 74 53 63 72 65 |nd..fn F|BGetScre|
|00002be0| 65 6e 52 65 63 74 28 72 | 29 0d 0d 72 2e 6c 65 66 |enRect(r|)..r.lef|
|00002bf0| 74 20 3d 20 72 2e 72 69 | 67 68 74 20 20 2d 20 32 |t = r.ri|ght - 2|
|00002c00| 35 36 0d 72 2e 74 6f 70 | 20 20 3d 20 72 2e 62 6f |56.r.top| = r.bo|
|00002c10| 74 74 6f 6d 20 2d 20 28 | 34 2a 31 32 29 0d 0d 63 |ttom - (|4*12)..c|
|00002c20| 61 6c 6c 20 6f 66 66 73 | 65 74 72 65 63 74 28 72 |all offs|etrect(r|
|00002c30| 2c 2d 34 2c 2d 34 29 0d | 0d 77 70 74 72 20 3d 20 |,-4,-4).|.wptr = |
|00002c40| 66 6e 20 6e 65 77 63 77 | 69 6e 64 6f 77 28 30 2c |fn newcw|indow(0,|
|00002c50| 72 2c 22 22 2c 5f 7a 54 | 72 75 65 2c 5f 70 6c 61 |r,"",_zT|rue,_pla|
|00002c60| 69 6e 44 42 6f 78 2c 2d | 31 2c 5f 66 61 6c 73 65 |inDBox,-|1,_false|
|00002c70| 2c 30 29 0d 6c 6f 6e 67 | 20 69 66 20 77 70 74 72 |,0).long| if wptr|
|00002c80| 0d 0d 23 69 66 20 43 61 | 72 62 6f 6e 4c 69 62 0d |..#if Ca|rbonLib.|
|00002c90| 63 61 6c 6c 20 53 65 74 | 50 6f 72 74 57 69 6e 64 |call Set|PortWind|
|00002ca0| 6f 77 50 6f 72 74 28 20 | 77 50 74 72 20 29 0d 23 |owPort( |wPtr ).#|
|00002cb0| 65 6c 73 65 0d 63 61 6c | 6c 20 53 65 74 50 6f 72 |else.cal|l SetPor|
|00002cc0| 74 28 77 50 74 72 29 0d | 23 65 6e 64 69 66 0d 0d |t(wPtr).|#endif..|
|00002cd0| 2f 2a 0d 20 20 20 20 20 | 53 68 6f 77 20 6d 65 73 |/*. |Show mes|
|00002ce0| 73 61 67 65 0d 2a 2f 0d | 6f 66 66 73 65 74 72 65 |sage.*/.|offsetre|
|00002cf0| 63 74 28 72 2c 2d 72 2e | 6c 65 66 74 2c 2d 72 2e |ct(r,-r.|left,-r.|
|00002d00| 74 6f 70 29 0d 63 61 6c | 6c 20 62 61 63 6b 63 6f |top).cal|l backco|
|00002d10| 6c 6f 72 28 5f 79 65 6c | 6c 6f 77 63 6f 6c 6f 72 |lor(_yel|lowcolor|
|00002d20| 29 0d 63 61 6c 6c 20 66 | 6f 72 65 63 6f 6c 6f 72 |).call f|orecolor|
|00002d30| 28 5f 42 6c 75 65 63 6f | 6c 6f 72 29 0d 65 72 61 |(_Blueco|lor).era|
|00002d40| 73 65 72 65 63 74 28 72 | 29 0d 72 2e 62 6f 74 74 |serect(r|).r.bott|
|00002d50| 6f 6d 20 3d 20 72 2e 62 | 6f 74 74 6f 6d 20 2d 20 |om = r.b|ottom - |
|00002d60| 31 32 0d 74 65 78 74 66 | 6f 6e 74 28 30 29 0d 74 |12.textf|ont(0).t|
|00002d70| 65 78 74 73 69 7a 65 28 | 39 29 0d 54 65 78 74 42 |extsize(|9).TextB|
|00002d80| 6f 78 28 40 6d 73 67 24 | 5b 31 5d 2c 20 6d 73 67 |ox(@msg$|[1], msg|
|00002d90| 24 5b 30 5d 2c 20 72 2c | 20 5f 74 65 46 6f 72 63 |$[0], r,| _teForc|
|00002da0| 65 4c 65 66 74 29 0d 0d | 72 2e 74 6f 70 20 20 20 |eLeft)..|r.top |
|00002db0| 20 3d 20 72 2e 62 6f 74 | 74 6f 6d 0d 72 2e 62 6f | = r.bot|tom.r.bo|
|00002dc0| 74 74 6f 6d 20 3d 20 72 | 2e 62 6f 74 74 6f 6d 20 |ttom = r|.bottom |
|00002dd0| 2b 20 31 32 0d 6d 73 67 | 24 20 3d 20 22 43 6c 69 |+ 12.msg|$ = "Cli|
|00002de0| 63 6b 20 6d 6f 75 73 65 | 20 74 6f 20 63 6f 6e 74 |ck mouse| to cont|
|00002df0| 69 6e 75 65 2e 22 0d 63 | 61 6c 6c 20 74 65 78 74 |inue.".c|all text|
|00002e00| 66 61 63 65 28 5f 62 6f | 6c 64 42 69 74 25 29 0d |face(_bo|ldBit%).|
|00002e10| 63 61 6c 6c 20 54 65 78 | 74 42 6f 78 28 40 6d 73 |call Tex|tBox(@ms|
|00002e20| 67 24 5b 31 5d 2c 20 6d | 73 67 24 5b 30 5d 2c 20 |g$[1], m|sg$[0], |
|00002e30| 72 2c 20 5f 74 65 6a 75 | 73 74 63 65 6e 74 65 72 |r, _teju|stcenter|
|00002e40| 29 0d 0d 23 69 66 20 43 | 61 72 62 6f 6e 4c 69 62 |)..#if C|arbonLib|
|00002e50| 0d 6c 6f 6e 67 20 69 66 | 20 66 6e 20 51 44 49 73 |.long if| fn QDIs|
|00002e60| 50 6f 72 74 42 75 66 66 | 65 72 65 64 28 20 66 6e |PortBuff|ered( fn|
|00002e70| 20 67 65 74 77 69 6e 64 | 6f 77 70 6f 72 74 28 77 | getwind|owport(w|
|00002e80| 50 74 72 29 20 29 0d 63 | 61 6c 6c 20 51 44 46 6c |Ptr) ).c|all QDFl|
|00002e90| 75 73 68 50 6f 72 74 42 | 75 66 66 65 72 28 20 66 |ushPortB|uffer( f|
|00002ea0| 6e 20 67 65 74 77 69 6e | 64 6f 77 70 6f 72 74 28 |n getwin|dowport(|
|00002eb0| 77 50 74 72 29 2c 20 30 | 20 29 0d 65 6e 64 20 69 |wPtr), 0| ).end i|
|00002ec0| 66 0d 23 65 6e 64 69 66 | 0d 0d 2f 2a 0d 20 20 20 |f.#endif|../*. |
|00002ed0| 20 20 77 61 69 74 20 66 | 6f 72 20 61 20 63 6c 69 | wait f|or a cli|
|00002ee0| 63 6b 0d 2a 2f 0d 0d 64 | 6f 0d 75 6e 74 69 6c 20 |ck.*/..d|o.until |
|00002ef0| 66 6e 20 62 75 74 74 6f | 6e 0d 0d 77 68 69 6c 65 |fn butto|n..while|
|00002f00| 20 66 6e 20 62 75 74 74 | 6f 6e 0d 77 65 6e 64 0d | fn butt|on.wend.|
|00002f10| 0d 63 61 6c 6c 20 66 6c | 75 73 68 65 76 65 6e 74 |.call fl|ushevent|
|00002f20| 73 28 2d 31 2c 30 29 0d | 64 69 73 70 6f 73 65 77 |s(-1,0).|disposew|
|00002f30| 69 6e 64 6f 77 28 77 50 | 74 72 29 0d 65 6e 64 20 |indow(wP|tr).end |
|00002f40| 69 66 0d 73 65 74 70 6f | 72 74 28 70 6f 72 74 29 |if.setpo|rt(port)|
|00002f50| 0d 65 6e 64 20 66 6e 0d | 0d 6c 6f 63 61 6c 20 0d |.end fn.|.local .|
|00002f60| 64 69 6d 20 6d 73 67 24 | 0d 72 75 6e 74 69 6d 65 |dim msg$|.runtime|
|00002f70| 20 64 65 66 20 44 45 42 | 55 47 4e 55 4d 42 45 52 | def DEB|UGNUMBER|
|00002f80| 28 74 68 65 4e 75 6d 23 | 29 27 5b 33 2f 31 2f 30 |(theNum#|)'[3/1/0|
|00002f90| 31 5d 20 63 73 0d 27 7e | 27 32 0d 6d 73 67 24 20 |1] cs.'~|'2.msg$ |
|00002fa0| 3d 20 20 20 20 20 20 20 | 20 22 44 65 63 69 6d 61 |= | "Decima|
|00002fb0| 6c 3a 22 2b 73 74 72 24 | 28 74 68 65 4e 75 6d 23 |l:"+str$|(theNum#|
|00002fc0| 29 2b 63 68 72 24 28 31 | 33 29 0d 6d 73 67 24 20 |)+chr$(1|3).msg$ |
|00002fd0| 3d 20 6d 73 67 24 20 2b | 20 22 20 20 20 20 48 65 |= msg$ +| " He|
|00002fe0| 78 3a 20 22 2b 68 65 78 | 24 28 74 68 65 4e 75 6d |x: "+hex|$(theNum|
|00002ff0| 23 29 2b 63 68 72 24 28 | 31 33 29 0d 6d 73 67 24 |#)+chr$(|13).msg$|
|00003000| 20 3d 20 6d 73 67 24 20 | 2b 20 22 20 42 69 6e 61 | = msg$ |+ " Bina|
|00003010| 72 79 3a 20 22 2b 62 69 | 6e 24 28 74 68 65 4e 75 |ry: "+bi|n$(theNu|
|00003020| 6d 23 29 0d 66 6e 20 53 | 6d 61 6c 6c 44 65 62 75 |m#).fn S|mallDebu|
|00003030| 67 57 69 6e 64 6f 77 28 | 6d 73 67 24 29 0d 65 6e |gWindow(|msg$).en|
|00003040| 64 20 66 6e 0d 0d 72 75 | 6e 74 69 6d 65 20 64 65 |d fn..ru|ntime de|
|00003050| 66 20 44 45 42 55 47 53 | 54 52 49 4e 47 28 6d 73 |f DEBUGS|TRING(ms|
|00003060| 67 24 29 27 5b 33 2f 31 | 2f 30 31 5d 20 63 73 0d |g$)'[3/1|/01] cs.|
|00003070| 27 7e 27 32 0d 66 6e 20 | 53 6d 61 6c 6c 44 65 62 |'~'2.fn |SmallDeb|
|00003080| 75 67 57 69 6e 64 6f 77 | 28 6d 73 67 24 29 0d 65 |ugWindow|(msg$).e|
|00003090| 6e 64 20 66 6e 0d 0d 00 | 00 00 00 00 00 00 00 00 |nd fn...|........|
|000030a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003100| 00 00 01 00 00 00 01 66 | 00 00 00 66 00 00 00 89 |.......f|...f....|
|00003110| 65 47 57 6f 72 6c 64 2e | 49 6e 63 6c 22 0d 49 4e |eGWorld.|Incl".IN|
|00003120| 43 4c 55 44 45 20 22 53 | 68 72 69 6e 6b 32 46 69 |CLUDE "S|hrink2Fi|
|00003130| 10 53 75 62 73 20 44 45 | 46 55 53 52 2e 49 6e 63 |.Subs DE|FUSR.Inc|
|00003140| 6c 72 63 63 6c 74 73 72 | 73 6c 64 65 72 73 73 72 |lrccltsr|slderssr|
|00003150| 02 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00003160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003170| 00 00 b3 b3 9e f1 00 00 | 00 00 00 00 01 ef 54 20 |........|......T |
|00003180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003190| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000031a0| 20 20 20 20 20 20 20 20 | 20 20 27 3c 3d 3d 3c 20 | | '<==< |
|000031b0| 4e 6f 74 20 52 65 71 75 | 69 72 65 64 0d 27 0d 47 |Not Requ|ired.'.G|
|000031c0| 69 6e 66 6f 26 20 20 3d | 20 46 4e 20 47 45 53 54 |info& =| FN GEST|
|000031d0| 41 4c 54 28 5f 22 71 74 | 69 6d 22 29 0d 67 48 61 |ALT(_"qt|im").gHa|
|000031e0| 73 51 54 25 20 3d 20 28 | 53 59 53 45 52 52 4f 52 |sQT% = (|SYSERROR|
|000031f0| 20 3d 20 5f 6e 6f 45 72 | 72 29 0d 67 4f 70 65 6e | = _noEr|r).gOpen|
|00003200| 00 00 00 48 00 09 50 72 | 6f 67 72 61 6d 00 00 00 |...H..Pr|ogram...|
|00003210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003220| 00 00 00 00 00 00 00 03 | 00 03 00 4c 00 0a 01 c2 |........|...L....|
|00003230| 02 80 00 4c 00 0a 01 c2 | 02 80 b3 12 d5 24 00 00 |...L....|.....$..|
|00003240| 02 72 00 00 02 7b 00 00 | 01 9a 01 00 00 00 00 04 |.r...{..|........|
|00003250| 00 01 00 01 00 00 00 02 | 01 8c 00 00 00 08 00 99 |........|........|
|00003260| 00 f6 02 5b 03 a3 00 00 | 01 00 00 00 01 66 00 00 |...[....|.....f..|
|00003270| 00 66 00 00 00 89 05 39 | 32 e4 05 c2 00 00 00 1c |.f.....9|2.......|
|00003280| 00 6e 00 03 4d 50 53 52 | 00 00 00 22 4d 57 42 42 |.n..MPSR|..."MWBB|
|00003290| 00 00 00 2e 52 45 4d 3e | 00 00 00 3a 77 50 4f 53 |....REM>|...:wPOS|
|000032a0| 00 00 00 46 03 ed ff ff | 00 00 00 00 00 00 00 00 |...F....|........|
|000032b0| 03 f0 ff ff 00 00 00 4c | 00 00 00 00 03 e8 00 00 |.......L|........|
|000032c0| 00 00 00 54 05 39 2f 84 | 03 e8 00 0b 00 00 00 5a |...T.9/.|.......Z|
|000032d0| 05 39 2f 88 0a 52 45 4d | 20 49 6e 64 65 6e 74 0f |.9/..REM| Indent.|
|000032e0| 57 69 6e 64 6f 77 20 50 | 6f 73 69 74 69 6f 6e 00 |Window P|osition.|
|000032f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+